index-maker

1.1.3 • Public • Published

Index Maker

2kb zero dependency library to create index.js files automatically

1. Install the package

npm i -D index-maker

2. Add script to package.json or run it directly

"indexer": "index-maker src/**/*.js"

3. Optionally specify index file name with flag -i and extention of import files -x (you might need it to work with typescript)

index-maker src/**/*.ts -i index.ts -x js

4. To export also from inner folders, use flag -f

index-maker src/**/*.ts -f

5. To export defaults as file name, use flag -d

index-maker src/**/*.ts -d


This is ESM module only

Package Sidebar

Install

npm i index-maker

Weekly Downloads

31

Version

1.1.3

License

MIT

Unpacked Size

4.24 kB

Total Files

5

Last publish

Collaborators

  • opium.pro