You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Brandon Cornejo
1ca5a8a797
|
9 years ago | |
---|---|---|
.. | ||
test | 12 years ago | |
.Readme.md.un~ | 12 years ago | |
.index.js.un~ | 12 years ago | |
Readme.md | 12 years ago | |
index.js | 12 years ago | |
package.json | 12 years ago |
Readme.md
require-all
An easy way to require all files within a directory.
Usage
var controllers = require('require-all')({
dirname: __dirname + '/controllers',
filter: /(.+Controller)\.js$/,
});
// controllers now is an object with references to all modules matching the filter
// for example:
// { HomeController: function HomeController() {...}, ...}