1.0.9 • Published 8 months ago
barrelgen v1.0.9
BarrelGen
This script generates an index.js file that performs sorted module "barreling" of the files from any directory and subdirectories of the provided path. The "barrel" consists of creating an index file that exports all the components contained in a directory, making it easier to import them into other files.
$ npm install -g barrelgen
$ barrelgen /path/to/directory