{"versions":{"1.0.0":{"name":"create-filter","version":"1.0.0","description":"Constructs a filter function which can be used to determine whether or not certain modules should be operated upon.","keywords":["glob","filter"],"homepage":"https://github.com/pengzhanbo/create-filter","repository":{"type":"git","url":"git+https://github.com/pengzhanbo/create-filter.git"},"license":"MIT","author":{"name":"pengzhanbo","email":"q942450674@outlook.com","url":"https://github.com/pengzhanbo"},"type":"module","exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"}},"main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","prettier":"@pengzhanbo/prettier-config","dependencies":{"bumpp":"^8.2.1","conventional-changelog-cli":"^2.2.2","picomatch":"^2.3.1"},"devDependencies":{"@pengzhanbo/eslint-config-ts":"^0.3.2","@pengzhanbo/prettier-config":"^0.3.2","@types/node":"^18.13.0","@types/picomatch":"^2.3.0","eslint":"^8.33.0","prettier":"^2.8.3","sort-package-json":"^2.4.1","tsup":"^6.6.0","typescript":"^4.9.5"},"packageManager":"pnpm@7.26.3","tsup":{"entry":["src/index.ts"],"sourcemap":false,"dts":true,"splitting":false,"clean":true,"format":["esm","cjs"]},"scripts":{"build":"tsup","lint":"eslint .","release":"bumpp package.json --execute=\"pnpm release:changelog\" --commit --all --push --tag && pnpm publish --access public","release:changelog":"conventional-changelog -p angular -i CHANGELOG.md -s"},"bugs":{"url":"https://github.com/pengzhanbo/create-filter/issues"},"_id":"create-filter@1.0.0","_integrity":"sha512-GILntrcuvYbSs9LYP3dc5muWQFG/fBdrl/fUVr1Wexug94FwSQ+Ua5HCqp+ikTTi1+aaUgjQby3eXEHYauwNIQ==","_resolved":"/private/var/folders/29/40prnnhn6r72y9dlk93mqjg00000gn/T/a89e6731fc4758268b8e93cf1a4b6842/create-filter-1.0.0.tgz","_from":"file:create-filter-1.0.0.tgz","_nodeVersion":"18.6.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-GILntrcuvYbSs9LYP3dc5muWQFG/fBdrl/fUVr1Wexug94FwSQ+Ua5HCqp+ikTTi1+aaUgjQby3eXEHYauwNIQ==","shasum":"e04bb89298531c5c0de40ae9ef6bff8be0de402d","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/create-filter/-/create-filter-1.0.0.tgz","fileCount":6,"unpackedSize":10466,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1EXEzEBzt2/cM4zyT2lHJ7Uyl5Yz2ws6ZWFAzYJ/4RAIhAO7xvdMgyV4nncwRycWvtbPV0mILNQQl8xc0Vrdi+5PK"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4ng4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQeRAAomNejcK6yO9E3OzttqeK1A0N44I9hN+ouYLyD2sg3G6mCauX\r\nSmQZREZlapiLq2se75/rLFFg0EK8xsAJZecEi33WhtcPHHm2hOlvBZMJ0ScH\r\n07GGAc9KV+DGM/snV5CboPxWfzSCzT2VANTesOUybhztH1wDGlbFg/Djg9DH\r\ndZbI+9/doO6zUno7cczbCX0lDEl8ZsGNWz1aQaCiJjdtKbhCwOLYQ9UCsk+g\r\n5YfecO/PK/o4KMu17OomcFl60ir4zl8kFaYq+3EmhfQCsra/nMEZF10FSO6d\r\nmmd9g5PRagfL/HOv4X8otMVN8QBAnAFyTIRTAEQYDoB58bQ+jYxbsfi/Etkc\r\nOLK3Nv06FI5wQ3SMx9OSBcLSvVQh0CU5E+6Vz9dqDIXrEIUobauMbPHzVxOI\r\nQQA7glFH4BLyaWl/8A0eO4dZlM2aGOKVD474g9heKMwCjtc8IPEWmLv8jZQZ\r\nydL4LjDncBm87HB356WrVJh0Qkl5+e2mKAo+xmLXUNFHpqngHHMeIwEe6wPj\r\nuvogP1aHW1SQut76+Pkn+5HbhjVKPuyAc9lN5ewkozMd91mwk0ttLwHrBYVl\r\n5udPK7U84imSF8iKPL5TzH85BnBJgcpPmZqHQP7xYunmuts3zbbkRwtcb+m7\r\nA5QScMQx+b/LETQjkkkffcYI+8i8VpKZNvA=\r\n=fo1G\r\n-----END PGP SIGNATURE-----\r\n","size":3861},"_npmUser":{"name":"anonymous","email":"volodymyr@foxmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"volodymyr@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/create-filter_1.0.0_1675786296353_0.7781263668694733"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-07T16:11:36.573Z","publish_time":1675786296573,"contributors":[]},"1.0.1":{"name":"create-filter","version":"1.0.1","description":"Constructs a filter function which can be used to determine whether or not certain modules should be operated upon.","keywords":["glob","filter"],"homepage":"https://github.com/pengzhanbo/create-filter","repository":{"type":"git","url":"git+https://github.com/pengzhanbo/create-filter.git"},"license":"MIT","author":{"name":"pengzhanbo","email":"q942450674@outlook.com","url":"https://github.com/pengzhanbo"},"type":"module","exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"}},"main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","prettier":"@pengzhanbo/prettier-config","dependencies":{"bumpp":"^8.2.1","conventional-changelog-cli":"^2.2.2","picomatch":"^2.3.1"},"devDependencies":{"@pengzhanbo/eslint-config-ts":"^0.3.2","@pengzhanbo/prettier-config":"^0.3.2","@types/node":"^18.13.0","@types/picomatch":"^2.3.0","eslint":"^8.33.0","prettier":"^2.8.3","sort-package-json":"^2.4.1","tsup":"^6.6.0","typescript":"^4.9.5"},"packageManager":"pnpm@7.26.3","tsup":{"entry":["src/index.ts"],"sourcemap":false,"dts":true,"splitting":false,"clean":true,"format":["esm","cjs"]},"scripts":{"build":"tsup","lint":"eslint .","release":"bumpp package.json --execute=\"pnpm release:changelog\" --commit --all --push --tag && pnpm publish --access public","release:changelog":"conventional-changelog -p angular -i CHANGELOG.md -s"},"bugs":{"url":"https://github.com/pengzhanbo/create-filter/issues"},"_id":"create-filter@1.0.1","_integrity":"sha512-ISChS5U1JjeRZarfczF+5Zci557L3fzllsoAyu5MZt6bJhcwq7xS+U/7sklG7LxAPESUgMax2ybsS1Hjo/1mtQ==","_resolved":"/private/var/folders/29/40prnnhn6r72y9dlk93mqjg00000gn/T/f8a8a8746c72dc782487e91d5283d791/create-filter-1.0.1.tgz","_from":"file:create-filter-1.0.1.tgz","_nodeVersion":"18.6.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-ISChS5U1JjeRZarfczF+5Zci557L3fzllsoAyu5MZt6bJhcwq7xS+U/7sklG7LxAPESUgMax2ybsS1Hjo/1mtQ==","shasum":"c11fce0bdbb5c139d2223443b4af139cf9786624","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/create-filter/-/create-filter-1.0.1.tgz","fileCount":6,"unpackedSize":10562,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCko3NEbQPPurk0hJ54YeknCzM+PJJTU3HZT877ONxUwAIgTAcYRHzTdhsLUuqyrsrFG8SSgaoI6CSgatdMsOk1ABk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5nBlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpeLQ//ZhnBJOGk9RPfBd3/oiVhruBqevJ2P1jTVsMJ3tzBBdout/Wm\r\nbQsvca1DqH+FYBqstpCTbWUBeEzk/VM8BfAVLcWrA0cpOwYuNz9gG3dyjezQ\r\nHCsvZ8wyhLkEWJfhLfUzPYQe5N2RTEFRKUAfZ6ULiQ/XSGnPyCQu68Ku1B3k\r\na8Ys2xEVNKDyHQxd77LBsUv+ZqAHzuU3f9yk7BQvxgl89dfohPRb6EJnVD5M\r\n2kHRE7WX4Rh/qhZvTOtWM+ToJ2OVm4PNsBKprNfXRZU9bczXXJRnUq0Pc+l9\r\n4gaP0fbB+2UHGCwtQPKvMCJzTk4GH6A5u9lh3cjw3jPrUNz9FqMBQRZWOjG2\r\nYiURfYEdySgu2CEN1B8Z7Ij3NblsBYjzFUTEU9JuPuPc88GDFYJslH+jyGkq\r\npGqpmwIEtJxL8Q/nmI0vaINL3n2Vvw4yyGqL05o8L4GL0v0VV2SIrHhR1FSX\r\noNGZM6NbiOa5NfG9ygN3BZygT9UsCnNvayDXQF65iqvyt7OBEakAMPCb5pS8\r\njcZUhi9b0TYRSCSp6jRJC/tDRWInLiKlpzHA6DRPDbKalyQhqW0mdYOQ+n8L\r\nkp5EI/Nqb1a8tDQzGqAaaYYlY2UQ1B3dhBeuCxfVo9gP2FLe98XRdoeirx1B\r\nDr+0vyhFNpTv50cpEW+dij6FNHcDl+pj1N0=\r\n=rok+\r\n-----END PGP SIGNATURE-----\r\n","size":3874},"_npmUser":{"name":"anonymous","email":"volodymyr@foxmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"volodymyr@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/create-filter_1.0.1_1676046437007_0.9308009846084948"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-10T16:27:17.179Z","publish_time":1676046437179,"contributors":[]},"1.1.0":{"name":"create-filter","type":"module","version":"1.1.0","description":"Constructs a filter function which can be used to determine whether or not certain modules should be operated upon.","author":{"name":"pengzhanbo","email":"q942450674@outlook.com","url":"https://github.com/pengzhanbo"},"license":"MIT","homepage":"https://github.com/pengzhanbo/create-filter","repository":{"type":"git","url":"git+https://github.com/pengzhanbo/create-filter.git"},"keywords":["glob","filter"],"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","dependencies":{"picomatch":"^4.0.2"},"devDependencies":{"@pengzhanbo/eslint-config":"^1.11.1","@types/node":"^20.14.9","@types/picomatch":"^2.3.3","bumpp":"^9.4.1","conventional-changelog-cli":"^5.0.0","eslint":"^9.5.0","tsup":"^8.1.0","typescript":"^5.5.2"},"tsup":{"entry":["src/index.ts"],"sourcemap":false,"dts":true,"splitting":false,"clean":true,"format":["esm","cjs"]},"scripts":{"build":"tsup","lint":"eslint .","release":"bumpp package.json --execute=\"pnpm release:changelog\" --commit --all --push --tag && pnpm publish --access public","release:changelog":"conventional-changelog -p angular -i CHANGELOG.md -s"},"bugs":{"url":"https://github.com/pengzhanbo/create-filter/issues"},"_id":"create-filter@1.1.0","_integrity":"sha512-mSHedS8IpVElLHvTFY9Bg+P0Fs5EyOypkoAWQRhSDyl1c2kzzFJVPv9o7ueOaYxmx/Cn4Cl3HWMLny6pE1b/aA==","_resolved":"/private/var/folders/29/40prnnhn6r72y9dlk93mqjg00000gn/T/e6b362d2beed1ead1d29e5809510553b/create-filter-1.1.0.tgz","_from":"file:create-filter-1.1.0.tgz","_nodeVersion":"21.3.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-mSHedS8IpVElLHvTFY9Bg+P0Fs5EyOypkoAWQRhSDyl1c2kzzFJVPv9o7ueOaYxmx/Cn4Cl3HWMLny6pE1b/aA==","shasum":"52921345196200a23d09b80601a262dc596c985b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/create-filter/-/create-filter-1.1.0.tgz","fileCount":7,"unpackedSize":10933,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCk25RP6LUwuHxu1UsF0i2IgkBLtCnxTFwNSRP/+z5ZzwIgYNDz1eI/8pXVxKbE/p1bTzO3+0XA65OzSAABwYOml6w="}],"size":3890},"_npmUser":{"name":"anonymous","email":"volodymyr@foxmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/create-filter_1.1.0_1719412053712_0.37563832741083036"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-26T14:27:33.886Z","publish_time":1719412053886,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"1.1.0"},"name":"create-filter","time":{"created":"2023-02-07T17:20:27.316Z","modified":"2024-06-26T21:39:27.764Z","1.0.0":"2023-02-07T16:11:36.573Z","1.0.1":"2023-02-10T16:27:17.179Z","1.1.0":"2024-06-26T14:27:33.886Z"},"readme":"# createFilter\n\nConstructs a filter function which can be used to determine whether or not certain modules should be operated upon.\n\n> Fork for [rollup](https://github.com/rollup/plugins/tree/master/packages/pluginutils#createfilter)\n\n## Install\n\n```sh\n# npm\nnpm i create-filter\n# yarn\nyarn add create-filter\n# pnpm\npnpm add create-filter\n```\n\n## Usage\n\n```ts\nimport createFilter from 'create-filter'\n\nconst filter = createFilter(['**/*.js'], ['**/__test__/**'], {\n  resolve: true\n})\n\nconst isSource = filter('src/index.js')\n```\n\n## `createFilter(include, exclude, options)`\n\n### include and exclude\n\nType: `String | RegExp | Array[...String|RegExp]`\n\nA valid [picomatch](https://github.com/micromatch/picomatch#globbing-features) pattern, or array of patterns. If `options.include` is omitted or has zero length, filter will return true by default. Otherwise, an ID must match one or more of the `picomatch` patterns, and must not match any of the `options.exclude` patterns.\n\nNote that `picomatch` patterns are very similar to [minimatch](https://github.com/isaacs/minimatch#readme) patterns, and in most use cases, they are interchangeable. If you have more specific pattern matching needs, you can view [this comparison table](https://github.com/micromatch/picomatch#library-comparisons) to learn more about where the libraries differ.\n\n### options\n\n**`resolve`**\n\nType: `String | Boolean | null`\n\nOptionally resolves the patterns against a directory other than `process.cwd()`. If a `String` is specified, then the value will be used as the base directory. Relative paths will be resolved against `process.cwd()` first. If `false`, then the patterns will not be resolved against any directory. This can be useful if you want to create a filter for virtual module names.","users":{}}