One click generator for barrel (index export) files for JavaScript and TypeScript.
- Creates index files with all named exports from a file.
- Recursively creates index files for folder contents.
Structure:
|-- /services
| |-- farm.service.ts
// farm.service.ts
export function feedAnimals() {}
export function cleanFarm() {}It would generate:
|-- /services
| |-- farm.service.ts
| |-- index.ts
// index.ts
export { feedAnimals, cleanFarm } from "./farm.service";Structure:
|-- /services
| |-- farm.service.ts
// farm.service.ts
export function feedAnimals() {}
export function cleanFarm() {}It would generate:
|-- /services
| |-- farm.service.ts
| |-- index.ts
|-- index.ts
// ./services/index.ts
export { feedAnimals, cleanFarm } from "./farm.service";// ./index.ts
export * from "./services";