fm

forward-modules

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

Showing:

Popularity

Downloads/wk

1

GitHub Stars

0

Maintenance

Last Commit

4yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.6KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100