export-indexer
v1.0.5
Published
This library is a library that automatically generates an index file.
Downloads
167
Readme
export-indexer
This library is a library that automatically generates an index file.
How to run
npx export-indexer
Install
npm
npm install -D export-indexer
yarn
yarn add -D export-indexer
Usage
Create a .index
file where you want the index file to be generated.
Example
If the directory structure is as follows
└ components
├ .index
└ test.tsx
Do the following in terminal:
npx export-indexer
If you want to detect changes:
npx export-indexer --watch
Then, the following contents will be output.
index.ts
export * from './text';
file
└ components
├ .index
├ index.ts
└ test.tsx