Skip to content

Tunnel-Labs/glob-imports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Glob-style imports for JavaScript/TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published