node-require-directory icon indicating copy to clipboard operation
node-require-directory copied to clipboard

Add live reloading

Open super-cache-money opened this issue 8 years ago • 0 comments

It seems possible, all we need to do is:

  1. watch for changes in the dir
  2. re-require any changed or new files
  3. 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.

super-cache-money avatar Jun 16 '16 01:06 super-cache-money