Index Maker
2kb zero dependency library to create index.js files automatically
1. Install the package
npm i -D index-maker
package.json
or run it directly
2. Add script to "indexer": "index-maker src/**/*.js"
-i
and extention of import files -x
(you might need it to work with typescript)
3. Optionally specify index file name with flag index-maker src/**/*.ts -i index.ts -x js
-f
4. To export also from inner folders, use flag index-maker src/**/*.ts -f
-d
5. To export defaults as file name, use flag index-maker src/**/*.ts -d
This is ESM module only