3.0.3 • Published 6 months ago

glob-imports v3.0.3

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

glob-imports

Support for glob-based file imports in JavaScript/TypeScript.

Given the following file structure:

.
└── utils/
    ├── index.js
    ├── foo.js
    ├── bar.js
    └── baz.js

Before:

// ./utils/index.js
export * from './foo.js';
export * from './bar.js';
export * from './baz.js';
// ... and all the other files inside `utils/`

After:

// ./utils/index.js
export * from 'glob:./!(index).js';