{"name":"globjoin","version":"1.0.0","keywords":["array","glob","glob join","globbing","multiple","negative glob","path","path join","patterns","wildcard"],"author":{"url":"https://github.com/amobiz","name":"Amobiz","email":"amobiz.tw+github@gmail.com"},"license":"MIT","_id":"globjoin@1.0.0","maintainers":[{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"}],"homepage":"https://github.com/amobiz/globjoin","bugs":{"url":"https://github.com/amobiz/globjoin/issues"},"dist":{"shasum":"f853ab5fac5d1de0a16ab818c02951a4a610ca4a","tarball":"http://registry-npm.ywwl.com/globjoin/download/globjoin-1.0.0.tgz","fileCount":7,"integrity":"sha512-Fj0NUfmpSfpw6n+6VDrejPX2N2hNY8VGulIUl/tyXu3clg6cI4uiEB7I5Kt19HDjJJqhsLQFYSEvLxaRLMcqSg==","signatures":[{"sig":"MEUCIQC7AiOyh+8oQfb/9ADCBXBr2DWwOkig/pmTfqnFlhmqygIgC1IctKrd7XlNKuNZoQhQX/kL3u9QdA/NonLT1U4n5wo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDQISb4qtJic8653osMdwwKJJISlkYfRI8oQlIRdHQ5QgIhAK++1b+6o98u8+H9v8kN8HDzt+SMdhlQA+IqX+Sbf9uK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6935,"size":3303,"noattachment":false,"key":"/globjoin/-/globjoin-1.0.0.tgz"},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}}},"gitHead":"4a496e92ad5f46202e9f8df0ad1d73bb07cee137","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"},"_npmUser":{"name":"amobiz","email":"amobiz.tw+npmjs@gmail.com"},"repository":{"url":"git+https://github.com/amobiz/globjoin.git","type":"git"},"_npmVersion":"11.19.1","description":"Join paths and globs.","directories":{},"sideEffects":false,"_nodeVersion":"25.5.0","dependencies":{"typescript":"^5.9.3"},"_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","@types/node":"^18.19.130","empirical-cases":"^0.4.0","typescript-eslint":"^8.70.0","@vitest/coverage-v8":"5.0.1","@arethetypeswrong/core":"^0.18.5"},"_npmOperationalInternal":{"tmp":"tmp/globjoin_1.0.0_1789966783037_0.6397847383085922","host":"s3://npm-registry-packages-npm-production"},"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":1789966783137,"_cnpm_publish_time":1789966783137,"dist-tags":{"latest":"1.0.1"}}