1.0.1 • Published 6 years ago

forward-modules v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

Forward Modules

This library automatically creates an exports map of all/some files in a directory

Image1

Image2

Install

npm i --save forward-modules

Use

Inside any directory, just add your entry point file, you don't have to name it index.js, you can also name it *.js or all.js.

And just add the following snippet:

module.exports = require('forward-modules')();

You can also exclude some modules:

module.exports = require('forward-modules')([ 'ModuleA', 'ModuleB', ]);

this exposes all modules in the directory except ModuleA, and ModuleB

1.0.1

6 years ago

1.0.0

6 years ago