Needs
Require multiple modules in node.js.
Installation
$ npm install needs --save
Usage
RegExp pattern
var needs = ; ; // controllers now is an object with references to all modules matching the filter// for example:// { HomeController: function HomeController() {...}, ...}
Minimatch string pattern
// or using minimatch string;
Array includes and excludes
;
Array pattern
;
Simplest way to include and exclude
; // or default includes ['*.js', '*.json'] and excludes ['!*.git', '!*.svn'];
Links
License
Copyright (c) 2014 Tao Yuan Licensed under the MIT license.