call-dir
call-dir searches for files in a directory and executes a callback for each. All symlinks, dotfiles and files without extension are ignored. Supports deep-loading. It can be used as an autoloader for JavaScript.
Installation
$ npm install call-dir
Usage
; ;;
Examples
Basic loading
;; const models = path;const routes = path; ; // You can initialize modules from a directory easily:;;
Deep loading
;; const modules = path; // Those two calls are equivalents:;;
Tests
$ npm test