load-dir
Recursively iterate through a directory and apply an iterator to the filepath. Includes shortcut methods for requiring or file reading.
Install
With npm
npm install load-dir
Usage
Node.js
var loadDir = // Require all .js filesvar lib = // Run require on all files, will break if non js filesvar lib = loadDir // Load all .jade files var templates = // Load every file foundvar templates = loadDir