r2load
v1.0.10
Published
Node.js autoloader for files, folders, and modules
Downloads
44
Maintainers
Readme
Usage
const r2load = require('r2load');
const loader = r2load();
const app = {};
loader
.load('model')
.load('controller')
.load('service')
.into(app);
/*
{
services: {
'model/users': ...,
'controller/users': ...,
'service/users': ...,
}
}
*/
Installation
$ npm install r2load