{"_id":"globjoin@1.0.1","bugs":{"url":"https://github.com/amobiz/globjoin/issues"},"dist":{"shasum":"88e3dc1d5dabb097903456143e72f1f712d7684f","tarball":"http://registry-npm.ywwl.com/globjoin/download/globjoin-1.0.1.tgz","fileCount":7,"integrity":"sha512-gyorU87aCM4U4vXgR57Jg8LRwgH6ED/LrMgB6MyTYTUgj27AhHC9ps/q1VSYPl5OwZ74TGOsq8mnEmkZHg6Sbw==","signatures":[{"sig":"MEUCIDerPFVj2WJWy/b1TA/W1kZp/X5PS7b8vXseMDODKR8qAiEAh9b89VuJ341nsn7y/qYNd2Om7voD0ztHEPjfr+eVCjo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHXPiPFYAn4CEuip1+YSyHynBLulBxE3ApPdMT7jfZKqAiAITn1NYpte4otzwD7qXj3EmDditL3L5slwTUDvn+bf+A=="}],"unpackedSize":6911,"size":3300,"noattachment":false,"key":"/globjoin/-/globjoin-1.0.1.tgz"},"main":"./dist/index.mjs","name":"globjoin","type":"module","types":"./dist/index.d.mts","author":{"url":"https://github.com/amobiz","name":"Amobiz","email":"amobiz.tw+github@gmail.com"},"module":"./dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}}},"gitHead":"d9922a534ba802c0c39e8be706dadef6c2520841","license":"MIT","scripts":{"dev":"tsdown --watch","tdd":"vitest","lint":"eslint","test":"vitest run","build":"tsdown --minify","prepack":"pnpm run build","coverage":"vitest run --coverage","typecheck":"tsc --noEmit"},"version":"1.0.1","_npmUser":{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"},"homepage":"https://github.com/amobiz/globjoin","keywords":["array","glob","glob join","globbing","multiple","negative glob","path","path join","patterns","wildcard"],"repository":{"url":"git+https://github.com/amobiz/globjoin.git","type":"git"},"_npmVersion":"11.19.1","description":"Join paths and globs.","directories":{},"maintainers":[{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"}],"sideEffects":false,"_nodeVersion":"25.5.0","_hasShrinkwrap":false,"packageManager":"pnpm@12.4.2+sha512.08adc6613180275c7c9edada39dcf08c9c61ad4e7eaf330a4f3461f102b0f907423454d117f98e72d47fef0616070644d7bffc973a6a57f5090a6d7c368b07c9","devDependencies":{"eslint":"^10.11.0","tsdown":"^0.22.14","vitest":"^5.0.1","globals":"^17.12.0","publint":"^0.3.24","@eslint/js":"^10.0.1","typescript":"^6.0.3","@types/node":"^18.19.130","empirical-cases":"^0.4.0","typescript-eslint":"^8.70.1","@vitest/coverage-v8":"5.0.1","@arethetypeswrong/core":"^0.18.5"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/globjoin_1.0.1_1790103410448_0.8518074329852068"},"readme":"# globjoin\n\nJoin paths and globs.\n\n![npm](https://shieldcn.dev/group/npm/license/globjoin+/npm/globjoin+npm/dw/globjoin+github/amobiz/globjoin/stars.svg)\n\n![chart](https://shieldcn.dev/chart/npm/globjoin.svg)\n\n## Install\n\n```bash\n$ npm install globjoin\n```\n\n## API\n\nLike Node's [`path.join()`](https://nodejs.org/api/path.html#path_path_join_path1_path2), which joins all arguments and normalizes the resulting path, `globjoin` accepts an arbitrary number of paths and/or arrays of globs, joins them together, and handles negative globs.\n\n```typescript\nfunction globjoin(...globs: Array<string>): string;\n\nfunction globjoin(...globs: Array<string | string[]>): string[];\n```\n\nImportant: Starting with version 1.0.0, negative globs are handled differently. Negative globs are now treated as negations of the corresponding path segments. For example:\n\n`globjoin([\"src\", \"!app\", \"!view\"])` => `\"src/app/view\"`\n\nWhile in version 0.1.4, the same input produced:\n\n`globjoin([\"src\", \"!app\", \"!view\"])` => `\"!src/app/view\"`\n\nThis is a breaking behavior change to be aware of when upgrading to version 1.0.0.\n\n#### Example\n\n```typescript\nimport globjoin from \"globjoin\";\n\nconst globs1 = globjoin(\"src\", [\"**/*.js\", \"!**/test*.js\"]);\n\nconst globs2 = globjoin(\n  \"test\",\n  \"fixture\",\n  \"app\",\n  [\"views\", \"!services\"],\n  [\"**/*\", \"!*.{js,json,coffee,ts}\"],\n);\n```\n\nCheck out test for more examples.\n\n## Issues\n\n[Issues](https://github.com/amobiz/globjoin/issues)\n\n## Test\n\n```bash\n$ npm test\n```\n\n## Changelog\n\n[Changelog](./CHANGELOG.md)\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n\n## Author\n\n[Amobiz](https://github.com/amobiz)\n\n## Contributor\n\n[StreetStrider](https://github.com/StreetStrider)\n","publish_time":1790103410539,"_cnpm_publish_time":1790103410539,"dist-tags":{"latest":"1.0.1"}}