{"_id":"@humanwhocodes/gitignore-to-minimatch","_rev":"2853268","name":"@humanwhocodes/gitignore-to-minimatch","description":"Utility to convert gitignore patterns to minimatch patterns","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"nzakas","email":""}],"time":{"modified":"2022-09-06T16:34:43.000Z","created":"2022-01-21T18:13:48.638Z","1.0.2":"2022-03-08T18:09:39.555Z","1.0.1":"2022-02-18T18:53:57.302Z","1.0.0":"2022-01-21T18:13:48.638Z"},"users":{},"author":{"name":"Nicholas C. Zaks"},"repository":{"type":"git","url":"git+https://github.com/humanwhocodes/gitignore-to-minimatch.git"},"versions":{"1.0.2":{"name":"@humanwhocodes/gitignore-to-minimatch","version":"1.0.2","description":"Utility to convert gitignore patterns to minimatch patterns","type":"module","main":"dist/gitignore-to-minimatch.cjs","module":"dist/gitignore-to-minimatch.js","types":"dist/gitignore-to-minimatch.d.ts","exports":{"require":"./dist/gitignore-to-minimatch.cjs","import":"./dist/gitignore-to-minimatch.js"},"publishConfig":{"access":"public"},"gitHooks":{"pre-commit":"lint-staged"},"lint-staged":{"*.js":["eslint --fix"]},"funding":{"type":"github","url":"https://github.com/sponsors/nzakas"},"scripts":{"build":"rollup -c && tsc","prepare":"npm run build","lint":"eslint src/ tests/","lint:fix":"eslint src/ tests/","pretest":"npm run build","test:unit":"mocha tests/gitignore-to-minimatch.test.js","test:build":"node tests/pkg.test.cjs && node tests/pkg.test.mjs","test":"npm run test:unit && npm run test:build"},"repository":{"type":"git","url":"git+https://github.com/humanwhocodes/gitignore-to-minimatch.git"},"keywords":["gitignore","minimatch","glob"],"author":{"name":"Nicholas C. Zaks"},"license":"Apache-2.0","devDependencies":{"chai":"^4.3.4","eslint":"^7.32.0","lint-staged":"^10.4.0","mocha":"^9.0.3","rollup":"^1.20.3","typescript":"^4.0.3","yorkie":"^2.0.0"},"gitHead":"0205b213e622c34b534b74f377968689d4504220","bugs":{"url":"https://github.com/humanwhocodes/gitignore-to-minimatch/issues"},"homepage":"https://github.com/humanwhocodes/gitignore-to-minimatch#readme","_id":"@humanwhocodes/gitignore-to-minimatch@1.0.2","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"shasum":"316b0a63b91c10e53f242efb4ace5c3b34e8728d","size":6111,"noattachment":false,"key":"/@humanwhocodes/gitignore-to-minimatch/-/@humanwhocodes/gitignore-to-minimatch-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@humanwhocodes/gitignore-to-minimatch/download/@humanwhocodes/gitignore-to-minimatch-1.0.2.tgz"},"_npmUser":{"name":"nzakas","email":"nicholas@nczconsulting.com"},"directories":{},"maintainers":[{"name":"nzakas","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gitignore-to-minimatch_1.0.2_1646762979391_0.14254293708999843"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-08T18:09:45.553Z","publish_time":1646762979555,"_cnpm_publish_time":1646762979555},"1.0.1":{"name":"@humanwhocodes/gitignore-to-minimatch","version":"1.0.1","description":"Utility to convert gitignore patterns to minimatch patterns","type":"module","main":"dist/gitignore-to-minimatch.cjs","module":"dist/gitignore-to-minimatch.js","types":"dist/gitignore-to-minimatch.d.ts","exports":{"require":"./dist/gitignore-to-minimatch.cjs","import":"./dist/gitignore-to-minimatch.js"},"publishConfig":{"access":"public"},"gitHooks":{"pre-commit":"lint-staged"},"lint-staged":{"*.js":["eslint --fix"]},"funding":{"type":"github","url":"https://github.com/sponsors/nzakas"},"scripts":{"build":"rollup -c && tsc","prepare":"npm run build","lint":"eslint src/ tests/","lint:fix":"eslint src/ tests/","pretest":"npm run build","test:unit":"mocha tests/gitignore-to-minimatch.test.js","test:build":"node tests/pkg.test.cjs && node tests/pkg.test.mjs","test":"npm run test:unit && npm run test:build"},"repository":{"type":"git","url":"git+https://github.com/humanwhocodes/gitignore-to-minimatch.git"},"keywords":["gitignore","minimatch","glob"],"author":{"name":"Nicholas C. Zaks"},"license":"Apache-2.0","devDependencies":{"chai":"^4.3.4","eslint":"^7.32.0","lint-staged":"^10.4.0","mocha":"^9.0.3","rollup":"^1.20.3","typescript":"^4.0.3","yorkie":"^2.0.0"},"gitHead":"9b7856faa1568d33058c90184ff4b7a97d1e50b0","bugs":{"url":"https://github.com/humanwhocodes/gitignore-to-minimatch/issues"},"homepage":"https://github.com/humanwhocodes/gitignore-to-minimatch#readme","_id":"@humanwhocodes/gitignore-to-minimatch@1.0.1","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"shasum":"2d5cc8dd27b7bc53d1964210b1d80c37eada460f","size":6071,"noattachment":false,"key":"/@humanwhocodes/gitignore-to-minimatch/-/@humanwhocodes/gitignore-to-minimatch-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@humanwhocodes/gitignore-to-minimatch/download/@humanwhocodes/gitignore-to-minimatch-1.0.1.tgz"},"_npmUser":{"name":"nzakas","email":"nicholas@nczconsulting.com"},"directories":{},"maintainers":[{"name":"nzakas","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gitignore-to-minimatch_1.0.1_1645210437159_0.09748492965645017"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-18T18:54:02.254Z","publish_time":1645210437302,"_cnpm_publish_time":1645210437302},"1.0.0":{"name":"@humanwhocodes/gitignore-to-minimatch","version":"1.0.0","description":"Utility to convert gitignore patterns to minimatch patterns","type":"module","main":"dist/gitignore-to-minimatch.cjs","module":"dist/gitignore-to-minimatch.js","types":"dist/gitignore-to-minimatch.d.ts","exports":{"require":"./dist/gitignore-to-minimatch.cjs","import":"./dist/gitignore-to-minimatch.js"},"publishConfig":{"access":"public"},"gitHooks":{"pre-commit":"lint-staged"},"lint-staged":{"*.js":["eslint --fix"]},"funding":{"type":"github","url":"https://github.com/sponsors/nzakas"},"scripts":{"build":"rollup -c && tsc","prepare":"npm run build","lint":"eslint src/ tests/","lint:fix":"eslint src/ tests/","pretest":"npm run build","test:unit":"mocha tests/gitignore-to-minimatch.test.js","test:build":"node tests/pkg.test.cjs && node tests/pkg.test.mjs","test":"npm run test:unit && npm run test:build"},"repository":{"type":"git","url":"git+https://github.com/humanwhocodes/gitignore-to-minimatch.git"},"keywords":["gitignore","minimatch","glob"],"author":{"name":"Nicholas C. Zaks"},"license":"Apache-2.0","devDependencies":{"chai":"^4.3.4","eslint":"^7.32.0","lint-staged":"^10.4.0","mocha":"^9.0.3","rollup":"^1.20.3","typescript":"^4.0.3","yorkie":"^2.0.0"},"gitHead":"2927716d420ee5f1e81de9e940e35a5418868770","bugs":{"url":"https://github.com/humanwhocodes/gitignore-to-minimatch/issues"},"homepage":"https://github.com/humanwhocodes/gitignore-to-minimatch#readme","_id":"@humanwhocodes/gitignore-to-minimatch@1.0.0","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"shasum":"640e9ef71141de6601ea2aea353059b03d301c2b","size":5940,"noattachment":false,"key":"/@humanwhocodes/gitignore-to-minimatch/-/@humanwhocodes/gitignore-to-minimatch-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@humanwhocodes/gitignore-to-minimatch/download/@humanwhocodes/gitignore-to-minimatch-1.0.0.tgz"},"_npmUser":{"name":"nzakas","email":"nicholas@nczconsulting.com"},"directories":{},"maintainers":[{"name":"nzakas","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gitignore-to-minimatch_1.0.0_1642788828456_0.6643221545239457"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-21T18:14:03.726Z","publish_time":1642788828638,"_cnpm_publish_time":1642788828638}},"readme":"# Gitignore to Minimatch Utility\n\nby [Nicholas C. Zakas](https://humanwhocodes.com)\n\nIf you find this useful, please consider supporting my work with a [donation](https://humanwhocodes.com/donate).\n\n## Description\n\nA function that converts a [gitignore](https://git-scm.com/docs/gitignore#_pattern_format) pattern into a [minimatch](https://github.com/isaacs/minimatch) pattern. There are subtle differences between these two formats, and depending on the utilities you're using, you may need one or the other.\n\n## Usage\n\n### Node.js\n\nInstall using [npm][npm] or [yarn][yarn]:\n\n```\nnpm install @humanwhocodes/gitignore-to-minimatch --save\n\n# or\n\nyarn add @humanwhocodes/gitignore-to-minimatch\n```\n\nImport into your Node.js project:\n\n```js\n// CommonJS\nconst { gitignoreToMinimatch } = require(\"@humanwhocodes/gitignore-to-minimatch\");\n\n// ESM\nimport { gitignoreToMinimatch } from \"@humanwhocodes/gitignore-to-minimatch\";\n```\n\n### Deno\n\nImport into your Deno project:\n\n```js\nimport { gitignoreToMinimatch } from \"https://cdn.skypack.dev/@humanwhocodes/gitignore-to-minimatch?dts\";\n```\n\n### Browser\n\nIt's recommended to import the minified version to save bandwidth:\n\n```js\nimport { gitignoreToMinimatch } from \"https://cdn.skypack.dev/@humanwhocodes/gitignore-to-minimatch?min\";\n```\n\nHowever, you can also import the unminified version for debugging purposes:\n\n```js\nimport { gitignoreToMinimatch } from \"https://cdn.skypack.dev/@humanwhocodes/gitignore-to-minimatch\";\n```\n\n## API\n\nAfter importing, call `gitignoreToMinimatch` with a string argument, like this:\n\n```js\nconst minimatchPattern = gitignoreToMinimatch(\"foo\");\nconsole.log(minimatchPattern);      // \"**/foo\"\n```\n\n## Developer Setup\n\n1. Fork the repository\n2. Clone your fork\n3. Run `npm install` to setup dependencies\n4. Run `npm test` to run tests\n\n## License\n\nApache 2.0\n\n[npm]: https://npmjs.com/\n[yarn]: https://yarnpkg.com/\n","_attachments":{},"homepage":"https://github.com/humanwhocodes/gitignore-to-minimatch#readme","bugs":{"url":"https://github.com/humanwhocodes/gitignore-to-minimatch/issues"},"license":"Apache-2.0"}