node-require-directory
node-require-directory copied to clipboard
Add live reloading
It seems possible, all we need to do is:
- watch for changes in the dir
- re-
require
any changed or new files - replace or add to the object representation accordingly
This would fucking rock. For example, imagine how easy it'd be to serve and develop an api out of a natural directory like this.
It could be an optionally enabled thing.