{"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":"http://registry-npm.ywwl.com/@humanwhocodes/gitignore-to-minimatch/download/@humanwhocodes/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="}],"size":5940,"noattachment":false,"key":"/@humanwhocodes/gitignore-to-minimatch/-/@humanwhocodes/gitignore-to-minimatch-1.0.0.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.0_1642788828456_0.6643221545239457"},"_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":1642788828638,"_cnpm_publish_time":1642788828638,"dist-tags":{"latest":"1.0.2"}}