Giter Site home page Giter Site logo

grump's People

Contributors

guncha avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

grump's Issues

Grump 1.0-ish wishlist

Tracking things I'd like to do / fix for the 1.0 release:

  • Rewrite Grump in Typescript

This would help ensure that GrumpFS indeed matches the Node's FS interface and increase reliability. It's also an opportunity to clean up a bunch of modules and perhaps narrow the scope some more.

  • Cache the directory tree so it can be reused by GrumpFS

A lot of globbing libraries like to make a lot of fs.dirlist calls and currently each one of them triggers a full traversal of the handlers. Also, since the handlers are based on the patterns and not actual directory structure, weird requests can be served where something that looks like a directory is actually a file.

  • Don't trigger the handler when doing fs.stat calls and similar

Most callers just want to know if a file exists and if it's a directory. These can be answered by traversing the handlers. Only asking for the file size would require running the handler, but I'm yet to see any build tool that does that.

  • Grump.require should wrap graceful-fs and similar libraries, too
  • Add ability for handlers to pass on handling the filename in which case the next one is tried
  • Find a better way to deal with *Sync calls

Currently, the sync package requires that the current stack frame starts inside a fiber somewhere which any callback based code is going to violate. There could be a separate sync path trough Grump that does it's best to serve the request. This would also let us get rid of the fibers package which is a compiled module that patches Node internals and could cause weird bugs and conflicts.

  • Implement the less used fs methods for GrumpFS, like read and open.
  • Implement fs write methods that should simply write the file to the cache or with a configuration option, write it to the file system.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.