{"id":13774310,"url":"https://github.com/gjbkz/rollup-plugin-glob-import","last_synced_at":"2025-07-22T09:36:53.579Z","repository":{"id":37105050,"uuid":"87618996","full_name":"gjbkz/rollup-plugin-glob-import","owner":"gjbkz","description":"A rollup plugin to use glob-star.","archived":false,"fork":false,"pushed_at":"2025-07-10T17:27:13.000Z","size":2443,"stargazers_count":25,"open_issues_count":11,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-10T23:44:01.587Z","etag":null,"topics":["glob","rollup"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gjbkz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"kei-ito","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2017-04-08T08:18:04.000Z","updated_at":"2025-06-30T19:13:06.000Z","dependencies_parsed_at":"2023-10-01T16:15:30.938Z","dependency_job_id":"122c52e1-7ea5-4232-b40e-906d5c970c65","html_url":"https://github.com/gjbkz/rollup-plugin-glob-import","commit_stats":null,"previous_names":["kei-ito/rollup-plugin-glob-import"],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/gjbkz/rollup-plugin-glob-import","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gjbkz%2Frollup-plugin-glob-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gjbkz%2Frollup-plugin-glob-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gjbkz%2Frollup-plugin-glob-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gjbkz%2Frollup-plugin-glob-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gjbkz","download_url":"https://codeload.github.com/gjbkz/rollup-plugin-glob-import/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gjbkz%2Frollup-plugin-glob-import/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266466570,"owners_count":23933428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["glob","rollup"],"created_at":"2024-08-03T17:01:25.558Z","updated_at":"2025-07-22T09:36:53.527Z","avatar_url":"https://github.com/gjbkz.png","language":"JavaScript","funding_links":["https://github.com/sponsors/kei-ito"],"categories":["Plugins"],"sub_categories":["Modules"],"readme":"# rollup-plugin-glob-import\n\n[![.github/workflows/test.yml](https://github.com/gjbkz/rollup-plugin-glob-import/actions/workflows/test.yml/badge.svg)](https://github.com/gjbkz/rollup-plugin-glob-import/actions/workflows/test.yml)\n[![codecov](https://codecov.io/gh/kei-ito/rollup-plugin-glob-import/branch/master/graph/badge.svg)](https://codecov.io/gh/kei-ito/rollup-plugin-glob-import)\n\nA plugin to use glob-star in import source.\n\n```javascript\nimport foo from './path/to/lib/*.js';\n```\n\n## Installation\n\n```bash\nnpm install --save-dev rollup-plugin-glob-import\n```\n\n## Usage\n\n```javascript\n// rollup.config.js\nconst globImport = require('rollup-plugin-glob-import');\n// import {plugin as globImport} from 'rollup-plugin-glob-import';\nexport default {\n  input: 'path/to/input.js',\n  plugins: [\n    globImport(options) // See the \"Options\" section below.\n  ]\n}\n```\n\n## Example\n\n- [sample/001](sample/001): Import named exports\n- [sample/002](sample/002): Import all exports including default exports\n- [sample/003](sample/003): Import side effects\n- [sample/004](sample/004): Use options.rename\n\n## Options\n\n```typescript\nexport interface IGlobPluginOptions {\n    /**\n     * The first argument of [rollup-pluginutils.createfilter](https://github.com/rollup/rollup-pluginutils#createfilter).\n     */\n    include?: Parameters\u003cCreateFilter\u003e[0],\n    /**\n     * The second argument of [rollup-pluginutils.createfilter](https://github.com/rollup/rollup-pluginutils#createfilter).\n     */\n    exclude?: Parameters\u003cCreateFilter\u003e[0],\n    /**\n     * - `'import'`: The intermediate files work as importer that export nothing.\n     * - `'named'`: The intermediate files export only **named** exports.\n     * - `'default'`: The intermediate files export only **default** exports.\n     * - `'mixed'`: This plugin read the imported files and parse it with\n     *   [acorn](https://www.npmjs.com/package/acorn) to check default exports.\n     *   Intermediate files export both named exports and default exports.\n     */\n    format?: IntermediateFileFormat,\n    /**\n     * A function generates the name of exports.\n     * It is used if `options.format` is `'mixed'` or `'default'`.\n     * For example, if an imported module `/src/foo.js` has\n     * `export const bar = 123` and `export default 456`, it is called twice:\n     * `rename('bar', '/src/foo.js')`, `rename(null, '/src/foo.js')`.\n     * If a return values is falsy value, it is ignored.\n     */\n    rename?: (name: string, id: string) =\u003e string,\n    /**\n     * [acorn](https://www.npmjs.com/package/acorn) options.\n     * The default value is `{sourceType: 'module'}`.\n     */\n    acorn?: acorn.Options,\n    /**\n     * A function called before generating intermediate files.\n     * You can add or remove files from sources.\n     */\n    intercept?: (sources: Array\u003cstring\u003e, importer: string, importee: string) =\u003e Array\u003cstring\u003e,\n}\n```\n\nhttps://github.com/kei-ito/rollup-plugin-glob-import/blob/d5d6d22d322da92ca8026322b2d629689fd8496d/lib/index.d.ts#L12-L49\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgjbkz%2Frollup-plugin-glob-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgjbkz%2Frollup-plugin-glob-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgjbkz%2Frollup-plugin-glob-import/lists"}