{"_id":"@humanwhocodes/gitignore-to-minimatch","_rev":"3-322cfd44bec047489e1b90b47c63149b","name":"@humanwhocodes/gitignore-to-minimatch","dist-tags":{"latest":"1.0.2"},"versions":{"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":{"integrity":"sha512-QAHSZ6K3zfifmgvwz0o2obfUU+Azm9pzM1JtRa4ojB5nvJa2sRbKbHYYs5QDL0qR6cJ1adLgHErHblXxZVJbZg==","shasum":"640e9ef71141de6601ea2aea353059b03d301c2b","tarball":"https://registry.npmjs.org/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.0.tgz","fileCount":6,"unpackedSize":17785,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6vfcCRA9TVsSAnZWagAATIYP/1DP+CKyzsJOV6X2zecz\nxQ4Ar+yNmvbF0cJVFDtijALSRT0yEt/5jrudTixNpcVJTKal8JVGDWJEc/TJ\n79ZDCOfYyfg1uzelYhUm4y/GGHX/LzgZp1xDMvcug2nvbHTCSwbPLfCx6q7P\nE6bq4RfY3XrYuSZYTMFHkaRSrdWy8ahvZiOZ+C90EcA35oaAggjJQjGM1Nty\nXxzp1aliuaBQzPuQr5jn19P5O6Z4V5B9lLJaOLNFI9O1ppWNqTzuDq/I5Dj6\n1t1BF8aZcJC/GhEO5EmNjwx6o5zDXo7I1jSMzyy/DcM6iG8/2Ga/PCDX51BP\nU8UmXCHVQgig573sl/mmdaS8GrlcgkDccz/hm9VW0fRx7uBCGPJDHF4KhKab\nwQUpYCVTA3qeF/1REFW4n84RWHu5Uw9TNSC0zBFp51uTxYHuY2P+NgJOsnei\nh9Npo8xr6XOeNjUntTm8HDgIivt6nS/JKtfORP7NNodwxnmHkPbMwutDnIqk\ny6WCgv2aHarSpx2eKUmeWwBOdXxdRbSUybh/OKuP2ERLiUSyNjcDHZMHcxv/\ntaQh7HH1c7hduwkd7dtUsGawrTFi1PGncAA71a+hH9rNl8FEjkiRCFnko+AK\nBf0wrG70gRSGUFk3Bc/m6EEgUvCvSW/VbztnJv8N2h7N0yRt2fwFYWoHfM1t\no0t5\r\n=Oit3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLJiv0r89mLrv8tRBa5vGYakJjDhJ6QizXPynFAkTXhwIgTfSNvzLGMklhqh2njc7BnAxIRwgadsZErEAlYRW33XI="}]},"_npmUser":{"name":"nzakas","email":"nicholas@nczconsulting.com"},"directories":{},"maintainers":[{"name":"nzakas","email":"nicholas@nczconsulting.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gitignore-to-minimatch_1.0.0_1642788828456_0.6643221545239457"},"_hasShrinkwrap":false},"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":{"integrity":"sha512-ZdA1SVvrxlGKW0SpuKv6CV9P475bGC/CTHlXvZpr5dZmAFe5XRtLbjIOQqeiAdaeS7Vd4vHd9uxuQQD67Xp7vw==","shasum":"2d5cc8dd27b7bc53d1964210b1d80c37eada460f","tarball":"https://registry.npmjs.org/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.1.tgz","fileCount":6,"unpackedSize":18709,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiD+tFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpgLw/8CvFAz8ORieIqcjOZEOlG14iryUDL+/+3a9nbkGukT5kAQ9Cd\r\nC3yYgl6OlKlF/h5aLkLYl0pmqq8TV978yNBt6l3zt9HRw1Gev/RLT96vF/YW\r\nUm2mh4Y9XLTCrmAHf8MEmfihxrMP0q7+8m6PO9mza0DFKOwoVY7xzPiR+z7z\r\nm757GerXBo+1HtvucOjX86psuw8Luxn5U7MBrxGo8KUjmcwMpr2pB9nyD8kd\r\n4VuPGeB05fCXZslrNe8wpp0ONDL5myFEfw7BUBkWnjr+ZqSlzxaWfwro7xSJ\r\nF7MGy6pqrijivdzMrRbIn1JdAPtYqlsDKqQJSjaaVu69QlVOvZix5m51WLr8\r\nBepkpfMedvMb+sXDKEicYzNmtw90L+lztc9CexNo/gthYp7tHT/8nnZQ9TOs\r\nXzgSkR3f2l8LUSYSTo87DQHCQdYXzttk6NBsLFFzksVmPfr5mcw7sAMIAdRP\r\nELosw/WxK5ouYF0mAslvqrXC/GVIGm2Ucv6nDz+0WhAXiFrw/2CWvh4NGOgR\r\nolamZ546zjvux+D+nVNB6jG57Mhm0xsHVgNwYl6crq7K6yW9eeSPFn4+4NX6\r\nBLFCQvf/JYz8b5H349CqK4Wv6o0BQngEeLxboSf0kAg7qyAb0duAzz8CelpM\r\nS1nld+UqDTo1LZDXnXAE3VtST0fo+o2GIQE=\r\n=YNo0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyTwQpely2uRYOeQBQzVfVrQzdwpv0abpoB9+jp+R/vwIhAJZMtA2IlEU56uJ28V+iDWnrj2G1PFY2kxYPYar75XX8"}]},"_npmUser":{"name":"nzakas","email":"nicholas@nczconsulting.com"},"directories":{},"maintainers":[{"name":"nzakas","email":"nicholas@nczconsulting.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gitignore-to-minimatch_1.0.1_1645210437159_0.09748492965645017"},"_hasShrinkwrap":false},"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":{"integrity":"sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA==","shasum":"316b0a63b91c10e53f242efb4ace5c3b34e8728d","tarball":"https://registry.npmjs.org/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.2.tgz","fileCount":6,"unpackedSize":18849,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiJ5vjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFphAAis8bOfsAYTu0AMcYEwO4832sf/Bcv6oe52PfUvdaxldzIzwv\r\nch6K8HL02WpqKs+K2xLEgHldK84iNnZMnt1fLJaSp4Uoo0I3WIfhNIgWuQE3\r\nF4JofEkYJM5KQQYaJTTBODHIq8acqfVP0++KPenHHRNjqKZwo8DOO5tnaqh9\r\nzmTlP+OVLkaskSEUP0rLgun3ywokVD+vFv7YwTE8DG4FqQdL/sDdRwUaObcE\r\nIjiAKiZ2eXJVRJKHDI9Dhn8/5dZgPo/ukkBHEiMZIrcSbc231N1QgQXUDvsH\r\nMISwvnmB+YEEb6hztZh/Jfos8BhGx8/AiTpT1ECYSL9DCFE4GIARugColBGo\r\n5RH5sUs3Sla6+65zvWWAFHZ44W6nO7sBtcK2CZvQU15ekLokoUgbibTAHChq\r\nCIozpfl0SC1yUvJ9u820CEGDw+WIanGgGZ5wKh/+xnug05TZqBv4uMl4paCW\r\nTMmxQj5c/XJoNrie4m4+bgZSzSg5mBJf2Ug/D3lFKoTS4WF6tE7YumMXk0V7\r\nnM5dcPOymCp0FSqbNcyYGyt0Ob1qAQqJ/FI1t/4xD2nzb/yv3/PLUZn+fDZi\r\nh5OWNRvUQdQc+YAzXl1zF3Zm+9R4fxgZLle+3KiBtfAfdHA3XUBIkAnYt/DV\r\nhxdC5dxTSb9CFI2++BgTrGWkF87JUyOcj8E=\r\n=SVdc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCt8W3KuuGvIN7FlGbWlr77WzmlRWXM4sGHe2rbhUutcwIhAMFZ2LJUruPI5E6ej5ye92LIv1/SecPVJgLoEVYH2zn8"}]},"_npmUser":{"name":"nzakas","email":"nicholas@nczconsulting.com"},"directories":{},"maintainers":[{"name":"nzakas","email":"nicholas@nczconsulting.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gitignore-to-minimatch_1.0.2_1646762979391_0.14254293708999843"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-21T18:13:48.412Z","1.0.0":"2022-01-21T18:13:48.638Z","modified":"2022-04-05T18:47:28.211Z","1.0.1":"2022-02-18T18:53:57.302Z","1.0.2":"2022-03-08T18:09:39.555Z"},"maintainers":[{"name":"nzakas","email":"nicholas@nczconsulting.com"}],"description":"Utility to convert gitignore patterns to minimatch patterns","homepage":"https://github.com/humanwhocodes/gitignore-to-minimatch#readme","keywords":["gitignore","minimatch","glob"],"repository":{"type":"git","url":"git+https://github.com/humanwhocodes/gitignore-to-minimatch.git"},"author":{"name":"Nicholas C. Zaks"},"bugs":{"url":"https://github.com/humanwhocodes/gitignore-to-minimatch/issues"},"license":"Apache-2.0","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","readmeFilename":"README.md"}