{"_id":"@arbz/glob-import-loader","_rev":"2-9b4d02e9788ac5eb349999243fd4cd92","name":"@arbz/glob-import-loader","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.3":{"name":"@arbz/glob-import-loader","version":"1.0.3","author":{"name":"Alireza Bahrani"},"license":"MIT","_id":"@arbz/glob-import-loader@1.0.3","maintainers":[{"name":"arbz","email":"alirezawbhr@gmail.com"}],"dist":{"shasum":"fe02ae0e25ad4d079fe9efafe9e1cab866e19ed3","tarball":"https://registry.npmjs.org/@arbz/glob-import-loader/-/glob-import-loader-1.0.3.tgz","fileCount":3,"integrity":"sha512-fyKdADVS2spcxFwWQ6DQeT7DULOw/UfF9ORW+2wWWWOPHKiBIYi7vyBUtjdLRk3vnojWhEQOEbG0KIuezQ8ZaQ==","signatures":[{"sig":"MEYCIQDFxDHxjdOlAmzsaZ7dSMY9rpF91esS1wkMTg0NNr0RsQIhAOu9r8MTDQE86eFxtQ3B6IXduFm3/LhcJPB4vJzruMdA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3783},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"857cb50f33b6aceba4375baf0d70467c5c9da78e","private":false,"scripts":{"lint":"tsc --noEmit && eslint --cache --cache-location ./node_modules/.cache/eslint/ --quiet --ext .js,.jsx,.ts,.tsx,.mjs src","build":"tsc","do-link":"npm link","prebuild":"rimraf dist","prettify":"prettier --write --cache ./src/**/*.{js,jsx,ts,tsx}","lint:prettier":"prettier --check --cache ./src/**/*.{js,jsx,ts,tsx}","release:major":"npm version major","release:patch":"npm version patch","release:public":"npm publish --access=public","release:private":"npm publish --access=restricted"},"_npmUser":{"name":"arbz","email":"alirezawbhr@gmail.com"},"_npmVersion":"9.6.7","description":"","directories":{},"_nodeVersion":"18.17.0","dependencies":{"glob":"^8.0.3"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.48.0","rimraf":"^6.0.1","prettier":"^3.0.3","typescript":"^5.6.2","@typescript-eslint/parser":"^6.21.0","@typescript-eslint/eslint-plugin":"^6.21.0"},"_npmOperationalInternal":{"tmp":"tmp/glob-import-loader_1.0.3_1727244576294_0.2663856580652333","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@arbz/glob-import-loader","version":"1.0.4","author":{"name":"Alireza Bahrani"},"license":"MIT","_id":"@arbz/glob-import-loader@1.0.4","maintainers":[{"name":"arbz","email":"alirezawbhr@gmail.com"}],"homepage":"https://github.com/AliReza99/glob-import-loader#readme","bugs":{"url":"https://github.com/AliReza99/glob-import-loader/issues"},"dist":{"shasum":"5a4d3ff16383a874a11d437aa467a2dad719137a","tarball":"https://registry.npmjs.org/@arbz/glob-import-loader/-/glob-import-loader-1.0.4.tgz","fileCount":5,"integrity":"sha512-GKUrhDSvgwaiqPDhEtRnwe2LxGZOMi73nRPcUdhKZkISmJARlMuCMp/NqH8ldmlZtyrmRGjlPiPaQRY2vgmyKA==","signatures":[{"sig":"MEUCIQC1E+Q4vkeNgJmFeC+2l1vP/355aOt3DTDV37Emll04JgIgA486HRVpIvoM6I9FNnnr/Xd2MwzDX5pMcR+FIDo7TjE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6499},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"bf709b0f7d4c8c56973beec8dc73aceeda8ff5d7","private":false,"scripts":{"lint":"tsc --noEmit && eslint --cache --cache-location ./node_modules/.cache/eslint/ --quiet --ext .js,.jsx,.ts,.tsx,.mjs src","build":"tsc","do-link":"npm link","prebuild":"rimraf dist","prettify":"prettier --write --cache ./src/**/*.{js,jsx,ts,tsx}","lint:prettier":"prettier --check --cache ./src/**/*.{js,jsx,ts,tsx}","release:major":"npm version major","release:patch":"npm version patch","release:public":"npm publish --access=public","release:private":"npm publish --access=restricted"},"_npmUser":{"name":"arbz","email":"alirezawbhr@gmail.com"},"repository":{"url":"git+https://github.com/AliReza99/glob-import-loader.git","type":"git"},"_npmVersion":"10.7.0","description":"A Webpack loader that enables glob imports, allowing you to dynamically import multiple files matching a glob pattern with their relative paths.","directories":{},"_nodeVersion":"18.20.4","dependencies":{"glob":"^8.0.3"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.48.0","rimraf":"^6.0.1","prettier":"^3.0.3","typescript":"^5.6.2","@typescript-eslint/parser":"^6.21.0","@typescript-eslint/eslint-plugin":"^6.21.0"},"_npmOperationalInternal":{"tmp":"tmp/glob-import-loader_1.0.4_1733384370746_0.871146768541796","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@arbz/glob-import-loader","private":false,"version":"1.0.5","description":"A Webpack loader that enables glob imports, allowing you to dynamically import multiple files matching a glob pattern with their relative paths.","author":{"name":"Alireza Bahrani"},"repository":{"type":"git","url":"git+https://github.com/AliReza99/glob-import-loader.git"},"keywords":["webpack","webpack-loader","glob","import"],"license":"MIT","type":"module","types":"dist/index.d.ts","main":"dist/index.js","scripts":{"lint:prettier":"prettier --check --cache ./src/**/*.{js,jsx,ts,tsx}","prettify":"prettier --write --cache ./src/**/*.{js,jsx,ts,tsx}","lint":"tsc --noEmit && eslint --cache --cache-location ./node_modules/.cache/eslint/ --quiet --ext .js,.jsx,.ts,.tsx,.mjs src","prebuild":"rimraf dist","build":"tsc","do-link":"npm link","release":"npx release patch"},"dependencies":{"glob":"^8.0.3"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","eslint":"^8.48.0","prettier":"^3.0.3","rimraf":"^6.0.1","typescript":"^5.6.2"},"_id":"@arbz/glob-import-loader@1.0.5","gitHead":"1a40db94410b9dd9816d3ccef7e8646ce19d82eb","bugs":{"url":"https://github.com/AliReza99/glob-import-loader/issues"},"homepage":"https://github.com/AliReza99/glob-import-loader#readme","_nodeVersion":"18.20.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-dNYXvDzPUfo60FZedM5qrYGeaCu2C7nzIdEMRvAKItnS8pbE+sUTnvDao9zi+kSfSIAX9DQruGzAJEa+1EwQMA==","shasum":"84761ccaeccec9099ab9f156a41929210d418528","tarball":"https://registry.npmjs.org/@arbz/glob-import-loader/-/glob-import-loader-1.0.5.tgz","fileCount":5,"unpackedSize":6463,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGf5irpBsppCJbOWcal5kA+DL+OMsrzfFU/X8GLgXPwbAiEA0mOkDgRkoclvprCviJwEl1JdbAe2u+7JpY43U/mp7Xo="}]},"_npmUser":{"name":"arbz","email":"alirezawbhr@gmail.com"},"directories":{},"maintainers":[{"name":"arbz","email":"alirezawbhr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/glob-import-loader_1.0.5_1733493249776_0.7443109071126632"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-25T06:09:36.227Z","modified":"2024-12-06T13:54:10.143Z","1.0.3":"2024-09-25T06:09:36.467Z","1.0.4":"2024-12-05T07:39:30.910Z","1.0.5":"2024-12-06T13:54:09.951Z"},"bugs":{"url":"https://github.com/AliReza99/glob-import-loader/issues"},"author":{"name":"Alireza Bahrani"},"license":"MIT","homepage":"https://github.com/AliReza99/glob-import-loader#readme","repository":{"type":"git","url":"git+https://github.com/AliReza99/glob-import-loader.git"},"description":"A Webpack loader that enables glob imports, allowing you to dynamically import multiple files matching a glob pattern with their relative paths.","maintainers":[{"name":"arbz","email":"alirezawbhr@gmail.com"}],"readme":"\n# @arbz/glob-import-loader\n\nA Webpack loader that enables **glob imports** for your project. With this loader, you can easily import multiple files matching a glob pattern and get an array of objects containing the module and its relative path.\n\n## Installation\n\n```bash\nnpm install @arbz/glob-import-loader\n```\n\n\nor\n\n```bash\nyarn add @arbz/glob-import-loader\n```\n\n## Usage\n\nAdd the loader to your Webpack configuration:\n\n```javascript\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.glob-import-allowed\\.(js|mjs|jsx|ts|tsx)?$/,\n        loader: '@arbz/glob-import-loader',\n        enforce: 'pre',\n      },\n    ],\n  },\n};\n```\n\n### Example\n\nGiven the following file structure:\n\n```\nsrc/\n├── components/\n│   ├── Header.jsx\n│   ├── Footer.jsx\n│   └── Sidebar.tsx\n```\n\nYou can use the loader to import multiple files:\n\n```javascript\nimport modules from './components/**/*.{jsx,tsx,ts}';\n\nconsole.log(modules);\n// Output:\n// [\n//   { module: Header, path: './Header.jsx' },\n//   { module: Footer, path: './Footer.jsx' },\n//   { module: Sidebar, path: './Sidebar.tsx' },\n// ]\n```\n\n### Notes\n\n- This loader supports only files with the `.glob-import-allowed` suffix by default (e.g., `index.glob-import-allowed.js`).\n- The `path` property in the resulting array is the relative path from the glob import location.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","readmeFilename":"README.md","keywords":["webpack","webpack-loader","glob","import"]}