Specla Autoloader
Autoload modules
and json
files with ease. This packages constructs an object
that reflects your folder structure and auto require the files within the
specified path.
Install
npm install --save specla-autoloader
Usage
const path = const Autoloader = const modules = path
Options
const modules = __dirname include: 'js' 'json' // specifies which file types to include ignore: 'node_modules' // ignore folders 'some-file.js' // ignore specific file