esrol-autoloader
An Autoloader Class for automatically including files.
Installation
$ npm install --save esrol-autoloader
Node Version Compatibility
Usage
'use strict';
let Autoloader = require ('esrol-autoloader');
let settings = {
getNamespaces: true,
getAsObject: true,
path: __dirname + '/app',
filesToSkip: ['controllers.skipMe', 'routes.skipMe']
};
let folders = new Autoloader(settings);
console.log(folders);
Autoloader
new Autoloader()
An Autoloader Class for automatically including files.
Contriubtion
Any contribution will be highly appreciated. Just make sure that:
1.Your code works.
2. You have 100% successful tests coverage.
3. You have comments in your code.
4. Follows eslint config. Exceptions are possible where that make sense.
Tests
To run the test suite, first install the dependencies, then run npm test
:
$ npm install
$ npm test
License
MIT