{"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":"http://registry-npm.ywwl.com/@humanwhocodes/gitignore-to-minimatch/download/@humanwhocodes/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"}],"size":6071,"noattachment":false,"key":"/@humanwhocodes/gitignore-to-minimatch/-/@humanwhocodes/gitignore-to-minimatch-1.0.1.tgz"},"_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,"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","publish_time":1645210437302,"_cnpm_publish_time":1645210437302,"dist-tags":{"latest":"1.0.2"}}