r2load is a Node.js autoloader for your files, folders, and modules
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': ...,
}
}
*/
$ npm install r2load