Skip to content

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

License

Notifications You must be signed in to change notification settings

opium-pro/index-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published