Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Barrel CommonJS Index CreatorNew to Visual Studio Code? Get it now.
Barrel CommonJS Index Creator

Barrel CommonJS Index Creator

paul.yestchick

|
1 install
| (0) | Free
Creates a CommonJS barrel file for a folder
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

commonJS-style-barrel

Barrel CommonJS Index Creator is a useful VS Code extension that automates the creation and update of CommonJS-style barrel files (module.exports). It scans your selected directory, automatically collects files and subfolders, and bundles their exports into a single file like index.js. This saves your time and removes the need to write repetitive require lines manually.The extension is designed to be highly flexible and safe to use. You can easily customize the output file name and extension, set your own templates for export lines, and create a list of ignored folders (such as node_modules or dist) that the tool should skip during directory scanning.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft