Automatically load modules in node.js
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
autoloader.js

README.md

Autoloader

Watches a directory, loads and reloads all files when they are updated.

Example

var autoloader = require('./autoloader.js');

autoloader.watch('./lol', function(err, file) {
    console.log('loaded:', err, file);
});