Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>BarrelerNew to Visual Studio Code? Get it now.
Barreler

Barreler

shinruchan

|
1,422 installs
| (1) | Free
One click generator for barrel (index export) files for JavaScript and TypeScript.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Barreler

One click generator for barrel (index export) files for JavaScript and TypeScript.

Barreler in action

Features

  • Creates index files with all named exports from a file.
  • Recursively creates index files for folder contents.

Generate index from single file

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";

Generate index from folder

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";
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft