{"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":"http://registry-npm.ywwl.com/@humanwhocodes/gitignore-to-minimatch/download/@humanwhocodes/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"}],"size":6111,"noattachment":false,"key":"/@humanwhocodes/gitignore-to-minimatch/-/@humanwhocodes/gitignore-to-minimatch-1.0.2.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.2_1646762979391_0.14254293708999843"},"_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":1646762979555,"_cnpm_publish_time":1646762979555,"dist-tags":{"latest":"1.0.2"}}