/js-indexer

creates index-file for a given folder and exports everything inside

Primary LanguageJavaScriptMIT LicenseMIT

js-indexer

creates index-file for a given folder to expose everthing inside

usage

npm install js-indexer --save-dev

./node_modules/.bin/js-indexer ./src/components/index.js ./src/utils/index.ts

filter via regexp

./node_modules/.bin/js-indexer --filter 'index\.js' ./src/components/index.js ./src/utils/index.ts

test-files and files with leading _ will be excluded.