glob-imports

3.0.3 • Public • Published

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

/glob-imports/

    Package Sidebar

    Install

    npm i glob-imports

    Weekly Downloads

    0

    Version

    3.0.3

    License

    none

    Unpacked Size

    7.74 kB

    Total Files

    6

    Last publish

    Collaborators

    • leondreamed