{"_id":"file-path-filter","_rev":"36247","name":"file-path-filter","description":"Filters file paths using globs, regular expressions, or custom criteria","dist-tags":{"latest":"3.0.2"},"maintainers":[{"name":"jamesmessinger","email":"james.messinger@gmail.com"}],"time":{"modified":"2021-06-03T10:08:01.000Z","created":"2019-06-17T13:27:11.685Z","3.0.2":"2020-07-16T13:55:23.493Z","3.0.1":"2020-03-15T14:56:26.533Z","3.0.0":"2020-02-16T14:44:32.002Z","2.2.2":"2019-08-25T16:48:34.509Z","2.2.1":"2019-08-19T22:18:27.044Z","2.2.0":"2019-08-19T19:37:17.427Z","2.1.0":"2019-08-19T14:11:29.298Z","2.0.1":"2019-08-19T11:46:51.884Z","2.0.0":"2019-08-16T13:35:39.187Z","1.0.3":"2019-06-18T00:19:07.232Z","1.0.2":"2019-06-18T00:06:47.379Z","1.0.1":"2019-06-17T23:48:11.989Z","1.0.0":"2019-06-17T13:27:11.685Z"},"users":{},"author":{"name":"James Messinger","url":"https://jamesmessinger.com"},"repository":{"type":"git","url":"git+https://github.com/JS-DevTools/file-path-filter.git"},"versions":{"3.0.2":{"name":"file-path-filter","version":"3.0.2","description":"Filters file paths using globs, regular expressions, or custom criteria","keywords":["filter","find","file","path","regex","regexp","glob","include","exclude"],"author":{"name":"James Messinger","url":"https://jamesmessinger.com"},"license":"MIT","homepage":"https://jstools.dev/file-path-filter","repository":{"type":"git","url":"git+https://github.com/JS-DevTools/file-path-filter.git"},"main":"index.js","types":"index.d.ts","engines":{"node":">=10"},"dependencies":{"@jsdevtools/file-path-filter":"3.0.2"},"bugs":{"url":"https://github.com/JS-DevTools/file-path-filter/issues"},"_id":"file-path-filter@3.0.2","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"shasum":"dab9231512bb33ad66b14dace7a35c82135dbb8f","size":4142,"noattachment":false,"key":"/file-path-filter/-/file-path-filter-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-path-filter/download/file-path-filter-3.0.2.tgz"},"maintainers":[{"name":"jamesmessinger","email":"james.messinger@gmail.com"}],"_npmUser":{"name":"jamesmessinger","email":"james.messinger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-path-filter_3.0.2_1594907723403_0.2613968195917411"},"_hasShrinkwrap":false,"publish_time":1594907723493,"_cnpm_publish_time":1594907723493},"3.0.1":{"name":"file-path-filter","version":"3.0.1","description":"Filters file paths using globs, regular expressions, or custom criteria","keywords":["filter","find","file","path","regex","regexp","glob","include","exclude"],"author":{"name":"James Messinger","url":"https://jamesmessinger.com"},"license":"MIT","homepage":"https://jstools.dev/file-path-filter","repository":{"type":"git","url":"git+https://github.com/JS-DevTools/file-path-filter.git"},"main":"index.js","types":"index.d.ts","engines":{"node":">=10"},"dependencies":{"@jsdevtools/file-path-filter":"3.0.1"},"bugs":{"url":"https://github.com/JS-DevTools/file-path-filter/issues"},"_id":"file-path-filter@3.0.1","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"shasum":"d2a121858ca7c260544b79546f9f0a659d11d082","size":4150,"noattachment":false,"key":"/file-path-filter/-/file-path-filter-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-path-filter/download/file-path-filter-3.0.1.tgz"},"maintainers":[{"name":"jamesmessinger","email":"james.messinger@gmail.com"}],"_npmUser":{"name":"jamesmessinger","email":"james.messinger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-path-filter_3.0.1_1584284186375_0.26724058789416905"},"_hasShrinkwrap":false,"publish_time":1584284186533,"_cnpm_publish_time":1584284186533},"3.0.0":{"name":"file-path-filter","version":"3.0.0","description":"Filters file paths using globs, regular expressions, or custom criteria","keywords":["filter","find","file","path","regex","regexp","glob","include","exclude"],"author":{"name":"James Messinger","url":"https://jamesmessinger.com"},"license":"MIT","homepage":"https://jstools.dev/file-path-filter","repository":{"type":"git","url":"git+https://github.com/JS-DevTools/file-path-filter.git"},"main":"index.js","types":"index.d.ts","engines":{"node":">=10"},"dependencies":{"@jsdevtools/file-path-filter":"3.0.0"},"bugs":{"url":"https://github.com/JS-DevTools/file-path-filter/issues"},"_id":"file-path-filter@3.0.0","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"shasum":"ec135432b59b3c2c5620c911f00cdb7e4f2d2ff7","size":3954,"noattachment":false,"key":"/file-path-filter/-/file-path-filter-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-path-filter/download/file-path-filter-3.0.0.tgz"},"maintainers":[{"name":"jamesmessinger","email":"james.messinger@gmail.com"}],"_npmUser":{"name":"jamesmessinger","email":"james.messinger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-path-filter_3.0.0_1581864271846_0.6129803325021268"},"_hasShrinkwrap":false,"publish_time":1581864272002,"_cnpm_publish_time":1581864272002},"2.2.2":{"name":"file-path-filter","version":"2.2.2","description":"Filters file paths using globs, regular expressions, or custom criteria","keywords":["filter","find","file","path","regex","regexp","glob","include","exclude"],"author":{"name":"James Messinger","url":"https://jamesmessinger.com"},"license":"MIT","homepage":"https://jstools.dev/file-path-filter","repository":{"type":"git","url":"git+https://github.com/JS-DevTools/file-path-filter.git"},"main":"lib/index.js","types":"lib/index.d.js","scripts":{"clean":"shx rm -rf .nyc_output coverage lib","lint":"npm run lint:typescript && npm run lint:javascript","lint:typescript":"tslint -p tsconfig.json","lint:javascript":"eslint test","build":"tsc","watch":"tsc --watch","test":"mocha && npm run lint","coverage":"nyc mocha","upgrade":"npm-check -u","bump":"bump --tag --push --all","release":"npm run upgrade && npm run clean && npm run build && npm test && npm run bump"},"engines":{"node":">=8"},"devDependencies":{"@types/chai":"^4.2.0","@types/command-line-args":"^5.0.0","@types/glob-to-regexp":"^0.4.0","@types/mocha":"^5.2.7","@types/node":"^12.7.2","chai":"^4.2.0","chai-exec":"^1.1.2","coveralls":"^3.0.6","eslint":"^6.2.2","eslint-config-modular":"^7.0.1","mocha":"^6.2.0","npm-check":"^5.9.0","nyc":"^14.1.1","shx":"^0.3.2","tslint":"^5.19.0","tslint-modular":"^1.6.0","typescript":"^3.5.3","typescript-tslint-plugin":"^0.5.4","version-bump-prompt":"^5.0.5"},"dependencies":{"glob-to-regexp":"^0.4.1"},"gitHead":"7bbac3554655fc8dc3787e6618854d422a237c8c","bugs":{"url":"https://github.com/JS-DevTools/file-path-filter/issues"},"_id":"file-path-filter@2.2.2","_npmVersion":"6.4.1","_nodeVersion":"8.16.1","_npmUser":{"name":"jamesmessinger","email":"james.messinger@gmail.com"},"dist":{"shasum":"69d0e1bf228d991262be5356ccf5e83d8eeff22d","size":8812,"noattachment":false,"key":"/file-path-filter/-/file-path-filter-2.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-path-filter/download/file-path-filter-2.2.2.tgz"},"maintainers":[{"name":"jamesmessinger","email":"james.messinger@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-path-filter_2.2.2_1566751714376_0.018491008112835994"},"_hasShrinkwrap":false,"publish_time":1566751714509,"_cnpm_publish_time":1566751714509},"2.2.1":{"name":"file-path-filter","version":"2.2.1","description":"Filters file paths using globs, regular expressions, or custom criteria","keywords":["filter","find","file","path","regex","regexp","glob","include","exclude"],"author":{"name":"James Messinger","url":"https://jamesmessinger.com"},"license":"MIT","homepage":"https://jsdevtools.org/file-path-filter","repository":{"type":"git","url":"git+https://github.com/JS-DevTools/file-path-filter.git"},"main":"lib/index.js","types":"lib/index.d.js","scripts":{"clean":"shx rm -rf .nyc_output coverage lib","lint":"npm run lint:typescript && npm run lint:javascript","lint:typescript":"tslint -p tsconfig.json","lint:javascript":"eslint test","build":"tsc","watch":"tsc --watch","test":"mocha && npm run lint","coverage":"nyc mocha","upgrade":"npm-check -u","bump":"bump --tag --push --all","release":"npm run upgrade && npm run clean && npm run build && npm test && npm run bump"},"engines":{"node":">=8"},"devDependencies":{"@types/chai":"^4.2.0","@types/command-line-args":"^5.0.0","@types/glob-to-regexp":"^0.4.0","@types/mocha":"^5.2.7","@types/node":"^12.7.2","chai":"^4.2.0","chai-exec":"^1.1.1","coveralls":"^3.0.6","eslint":"^6.2.0","eslint-config-modular":"^7.0.0","mocha":"^6.2.0","npm-check":"^5.9.0","nyc":"^14.1.1","shx":"^0.3.2","tslint":"^5.18.0","tslint-modular":"^1.5.0","typescript":"^3.5.3","typescript-tslint-plugin":"^0.5.4","version-bump-prompt":"^5.0.4"},"dependencies":{"glob-to-regexp":"^0.4.1"},"gitHead":"5e87f13a4adecb478cde8ef962edff980641819f","bugs":{"url":"https://github.com/JS-DevTools/file-path-filter/issues"},"_id":"file-path-filter@2.2.1","_npmVersion":"6.4.1","_nodeVersion":"8.16.1","_npmUser":{"name":"jamesmessinger","email":"james.messinger@gmail.com"},"dist":{"shasum":"b854080a809c92ce5ffd1faad14559da3a8dad0b","size":8808,"noattachment":false,"key":"/file-path-filter/-/file-path-filter-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-path-filter/download/file-path-filter-2.2.1.tgz"},"maintainers":[{"name":"jamesmessinger","email":"james.messinger@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-path-filter_2.2.1_1566253106930_0.7835952680282567"},"_hasShrinkwrap":false,"publish_time":1566253107044,"_cnpm_publish_time":1566253107044},"2.2.0":{"name":"file-path-filter","version":"2.2.0","description":"Filters file paths using globs, regular expressions, or custom criteria","keywords":["filter","find","file","path","regex","regexp","glob","include","exclude"],"author":{"name":"James Messinger","url":"https://jamesmessinger.com"},"license":"MIT","homepage":"https://jsdevtools.org/file-path-filter","repository":{"type":"git","url":"git+https://github.com/JS-DevTools/file-path-filter.git"},"main":"lib/index.js","types":"lib/index.d.js","scripts":{"clean":"shx rm -rf .nyc_output coverage lib","lint":"npm run lint:typescript && npm run lint:javascript","lint:typescript":"tslint -p tsconfig.json","lint:javascript":"eslint test","build":"tsc","watch":"tsc --watch","test":"mocha && npm run lint","coverage":"nyc mocha","upgrade":"npm-check -u","bump":"bump --tag --push --all","release":"npm run upgrade && npm run clean && npm run build && npm test && npm run bump"},"engines":{"node":">=8"},"devDependencies":{"@types/chai":"^4.2.0","@types/command-line-args":"^5.0.0","@types/glob-to-regexp":"^0.4.0","@types/mocha":"^5.2.7","@types/node":"^12.7.2","chai":"^4.2.0","chai-exec":"^1.1.1","coveralls":"^3.0.6","eslint":"^6.2.0","eslint-config-modular":"^7.0.0","mocha":"^6.2.0","npm-check":"^5.9.0","nyc":"^14.1.1","shx":"^0.3.2","tslint":"^5.18.0","tslint-modular":"^1.5.0","typescript":"^3.5.3","typescript-tslint-plugin":"^0.5.4","version-bump-prompt":"^5.0.4"},"dependencies":{"glob-to-regexp":"^0.4.1"},"gitHead":"0c78dfef559e5bc0ab3f82b6343c456833fbb241","bugs":{"url":"https://github.com/JS-DevTools/file-path-filter/issues"},"_id":"file-path-filter@2.2.0","_npmVersion":"6.4.1","_nodeVersion":"8.16.1","_npmUser":{"name":"jamesmessinger","email":"james.messinger@gmail.com"},"dist":{"shasum":"3c3e8bd0548f424be1706380f4c520bb1182d625","size":8688,"noattachment":false,"key":"/file-path-filter/-/file-path-filter-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-path-filter/download/file-path-filter-2.2.0.tgz"},"maintainers":[{"name":"jamesmessinger","email":"james.messinger@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-path-filter_2.2.0_1566243437296_0.18464182940858098"},"_hasShrinkwrap":false,"publish_time":1566243437427,"_cnpm_publish_time":1566243437427},"2.1.0":{"name":"file-path-filter","version":"2.1.0","description":"Filters file paths using globs, regular expressions, or custom criteria","keywords":["filter","find","file","path","regex","regexp","glob","include","exclude"],"author":{"name":"James Messinger","url":"https://jamesmessinger.com"},"license":"MIT","homepage":"https://jsdevtools.org/file-path-filter","repository":{"type":"git","url":"git+https://github.com/JS-DevTools/file-path-filter.git"},"main":"lib/index.js","types":"lib/index.d.js","scripts":{"clean":"shx rm -rf .nyc_output coverage lib","lint":"npm run lint:typescript && npm run lint:javascript","lint:typescript":"tslint -p tsconfig.json","lint:javascript":"eslint test","build":"tsc","watch":"tsc --watch","test":"mocha && npm run lint","coverage":"nyc mocha","upgrade":"npm-check -u","bump":"bump --tag --push --all","release":"npm run upgrade && npm run clean && npm run build && npm test && npm run bump"},"engines":{"node":">=8"},"devDependencies":{"@types/chai":"^4.2.0","@types/command-line-args":"^5.0.0","@types/glob-to-regexp":"^0.4.0","@types/mocha":"^5.2.7","@types/node":"^12.7.2","chai":"^4.2.0","chai-exec":"^1.1.1","coveralls":"^3.0.6","eslint":"^6.2.0","eslint-config-modular":"^7.0.0","mocha":"^6.2.0","npm-check":"^5.9.0","nyc":"^14.1.1","shx":"^0.3.2","tslint":"^5.18.0","tslint-modular":"^1.5.0","typescript":"^3.5.3","typescript-tslint-plugin":"^0.5.4","version-bump-prompt":"^5.0.4"},"dependencies":{"glob-to-regexp":"^0.4.1"},"gitHead":"8afafc7d3b3153192882a0f464fc8391e342d6de","bugs":{"url":"https://github.com/JS-DevTools/file-path-filter/issues"},"_id":"file-path-filter@2.1.0","_npmVersion":"6.4.1","_nodeVersion":"8.16.1","_npmUser":{"name":"jamesmessinger","email":"james.messinger@gmail.com"},"dist":{"shasum":"fb51b6be761fda9105df65f10032013ddc4a9a07","size":8476,"noattachment":false,"key":"/file-path-filter/-/file-path-filter-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-path-filter/download/file-path-filter-2.1.0.tgz"},"maintainers":[{"name":"jamesmessinger","email":"james.messinger@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-path-filter_2.1.0_1566223889222_0.8069448750861219"},"_hasShrinkwrap":false,"publish_time":1566223889298,"_cnpm_publish_time":1566223889298},"2.0.1":{"name":"file-path-filter","version":"2.0.1","description":"Filters file paths using globs, regular expressions, or custom criteria","keywords":["filter","find","file","path","regex","regexp","glob","include","exclude"],"author":{"name":"James Messinger","url":"https://jamesmessinger.com"},"license":"MIT","homepage":"https://jsdevtools.org/file-path-filter","repository":{"type":"git","url":"git+https://github.com/JS-DevTools/file-path-filter.git"},"main":"lib/index.js","types":"lib/index.d.js","scripts":{"clean":"shx rm -rf .nyc_output coverage lib","lint":"npm run lint:typescript && npm run lint:javascript","lint:typescript":"tslint -p tsconfig.json","lint:javascript":"eslint test","build":"tsc","watch":"tsc --watch","test":"mocha && npm run lint","coverage":"nyc mocha","upgrade":"npm-check -u","bump":"bump --tag --push --all","release":"npm run upgrade && npm run clean && npm run build && npm test && npm run bump"},"engines":{"node":">=8"},"devDependencies":{"@types/chai":"^4.2.0","@types/command-line-args":"^5.0.0","@types/glob-to-regexp":"^0.4.0","@types/mocha":"^5.2.7","@types/node":"^12.7.2","chai":"^4.2.0","chai-exec":"^1.1.1","coveralls":"^3.0.6","eslint":"^6.2.0","eslint-config-modular":"^7.0.0","mocha":"^6.2.0","npm-check":"^5.9.0","nyc":"^14.1.1","shx":"^0.3.2","tslint":"^5.18.0","tslint-modular":"^1.5.0","typescript":"^3.5.3","typescript-tslint-plugin":"^0.5.4","version-bump-prompt":"^5.0.4"},"dependencies":{"glob-to-regexp":"^0.4.1"},"gitHead":"b2725ba466b8d449e04c13e3ea2713c781a12847","bugs":{"url":"https://github.com/JS-DevTools/file-path-filter/issues"},"_id":"file-path-filter@2.0.1","_npmVersion":"6.4.1","_nodeVersion":"8.16.1","_npmUser":{"name":"jamesmessinger","email":"james.messinger@gmail.com"},"dist":{"shasum":"5195536e6cd18f257867a8fa6df7be18d1e4bf63","size":7134,"noattachment":false,"key":"/file-path-filter/-/file-path-filter-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-path-filter/download/file-path-filter-2.0.1.tgz"},"maintainers":[{"name":"jamesmessinger","email":"james.messinger@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-path-filter_2.0.1_1566215211760_0.9095080494407612"},"_hasShrinkwrap":false,"publish_time":1566215211884,"_cnpm_publish_time":1566215211884},"2.0.0":{"name":"file-path-filter","version":"2.0.0","description":"Filters file paths using globs, regular expressions, or custom criteria","keywords":["filter","find","file","path","regex","regexp","glob","include","exclude"],"author":{"name":"James Messinger","url":"https://jamesmessinger.com"},"license":"MIT","homepage":"https://jsdevtools.org/file-path-filter","repository":{"type":"git","url":"git+https://github.com/JS-DevTools/file-path-filter.git"},"main":"lib/index.js","types":"lib/index.d.js","scripts":{"clean":"shx rm -rf .nyc_output coverage lib","lint":"npm run lint:typescript && npm run lint:javascript","lint:typescript":"tslint -p tsconfig.json","lint:javascript":"eslint test","build":"tsc","watch":"tsc --watch","test":"mocha && npm run lint","coverage":"nyc mocha","upgrade":"npm-check -u","bump":"bump --tag --push --all","release":"npm run upgrade && npm run clean && npm run build && npm test && npm run bump"},"engines":{"node":">=8"},"devDependencies":{"@types/chai":"^4.2.0","@types/command-line-args":"^5.0.0","@types/glob-to-regexp":"^0.4.0","@types/mocha":"^5.2.7","@types/node":"^12.7.2","chai":"^4.2.0","chai-exec":"^1.1.1","coveralls":"^3.0.6","eslint":"^6.1.0","eslint-config-modular":"^7.0.0","mocha":"^6.2.0","npm-check":"^5.9.0","nyc":"^14.1.1","shx":"^0.3.2","tslint":"^5.18.0","tslint-modular":"^1.5.0","typescript":"^3.5.3","typescript-tslint-plugin":"^0.5.4","version-bump-prompt":"^5.0.4"},"dependencies":{"glob-to-regexp":"^0.4.1"},"gitHead":"fcd866c6c5e6b031a528fddf15e07acbfd74a828","bugs":{"url":"https://github.com/JS-DevTools/file-path-filter/issues"},"_id":"file-path-filter@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.16.1","_npmUser":{"name":"jamesmessinger","email":"james.messinger@gmail.com"},"dist":{"shasum":"c7fb418d0f905e41812e087dabd4ec12a6a03258","size":6681,"noattachment":false,"key":"/file-path-filter/-/file-path-filter-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-path-filter/download/file-path-filter-2.0.0.tgz"},"maintainers":[{"name":"jamesmessinger","email":"james.messinger@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-path-filter_2.0.0_1565962539076_0.30697525219622657"},"_hasShrinkwrap":false,"publish_time":1565962539187,"_cnpm_publish_time":1565962539187},"1.0.3":{"name":"file-path-filter","version":"1.0.3","description":"Filters file paths using globs, regular expressions, or custom criteria","keywords":["filter","find","file","path","regex","regexp","glob","include","exclude"],"author":{"name":"James Messinger","url":"https://jamesmessinger.com"},"license":"MIT","homepage":"https://jsdevtools.org/file-path-filter","repository":{"type":"git","url":"git+https://github.com/JS-DevTools/file-path-filter.git"},"main":"lib/index.js","types":"lib/index.d.js","scripts":{"clean":"shx rm -rf .nyc_output coverage lib","lint":"npm run lint:typescript && npm run lint:javascript","lint:typescript":"tslint -p tsconfig.json","lint:javascript":"eslint test","build":"tsc","watch":"tsc --watch","test":"mocha && npm run lint","coverage":"nyc mocha","upgrade":"npm-check -u","bump":"bump --tag --push --all","release":"npm run upgrade && npm run clean && npm run build && npm test && npm run bump"},"engines":{"node":">=8"},"devDependencies":{"@types/chai":"^4.1.7","@types/command-line-args":"^5.0.0","@types/glob-to-regexp":"^0.4.0","@types/mocha":"^5.2.7","@types/node":"^12.0.7","chai":"^4.2.0","chai-exec":"^1.1.1","coveralls":"^3.0.4","eslint":"^5.16.0","eslint-config-modular":"^7.0.0","mocha":"^6.1.4","npm-check":"^5.9.0","nyc":"^14.1.1","shx":"^0.3.2","tslint":"^5.17.0","tslint-modular":"^1.4.1","typescript":"^3.5.1","typescript-tslint-plugin":"^0.5.0","version-bump-prompt":"^5.0.3"},"dependencies":{"glob-to-regexp":"^0.4.1"},"gitHead":"7a59984c26430cf30bbcc3f50be2aa494364b40f","bugs":{"url":"https://github.com/JS-DevTools/file-path-filter/issues"},"_id":"file-path-filter@1.0.3","_npmVersion":"6.4.1","_nodeVersion":"8.16.0","_npmUser":{"name":"jamesmessinger","email":"james.messinger@gmail.com"},"dist":{"shasum":"eb92814aff639e074091f6ab214ce8961e81ae83","size":6404,"noattachment":false,"key":"/file-path-filter/-/file-path-filter-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-path-filter/download/file-path-filter-1.0.3.tgz"},"maintainers":[{"name":"jamesmessinger","email":"james.messinger@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-path-filter_1.0.3_1560817147103_0.12080523630064044"},"_hasShrinkwrap":false,"publish_time":1560817147232,"_cnpm_publish_time":1560817147232},"1.0.2":{"name":"file-path-filter","version":"1.0.2","description":"Filters file paths using globs, regular expressions, or custom criteria","keywords":["filter","find","file","path","regex","regexp","glob","include","exclude"],"author":{"name":"James Messinger","url":"https://jamesmessinger.com"},"license":"MIT","homepage":"https://jsdevtools.org/file-path-filter","repository":{"type":"git","url":"git+https://github.com/JS-DevTools/file-path-filter.git"},"main":"lib/index.js","types":"lib/index.d.js","scripts":{"clean":"shx rm -rf .nyc_output coverage lib","lint":"npm run lint:typescript && npm run lint:javascript","lint:typescript":"tslint -p tsconfig.json","lint:javascript":"eslint test","build":"tsc","watch":"tsc --watch","test":"mocha && npm run lint","coverage":"nyc mocha","upgrade":"npm-check -u","bump":"bump --tag --push --all","release":"npm run upgrade && npm run clean && npm run build && npm test && npm run bump"},"engines":{"node":">=8"},"devDependencies":{"@types/chai":"^4.1.7","@types/command-line-args":"^5.0.0","@types/glob-to-regexp":"^0.4.0","@types/mocha":"^5.2.7","@types/node":"^12.0.7","chai":"^4.2.0","chai-exec":"^1.1.1","coveralls":"^3.0.4","eslint":"^5.16.0","eslint-config-modular":"^7.0.0","mocha":"^6.1.4","npm-check":"^5.9.0","nyc":"^14.1.1","shx":"^0.3.2","tslint":"^5.17.0","tslint-modular":"^1.4.1","typescript":"^3.5.1","typescript-tslint-plugin":"^0.5.0","version-bump-prompt":"^5.0.3"},"dependencies":{"glob-to-regexp":"^0.4.1"},"gitHead":"21504ec529c85ecd9b7c8cfe5896ca6d47faf87d","bugs":{"url":"https://github.com/JS-DevTools/file-path-filter/issues"},"_id":"file-path-filter@1.0.2","_npmVersion":"6.4.1","_nodeVersion":"8.16.0","_npmUser":{"name":"jamesmessinger","email":"james.messinger@gmail.com"},"dist":{"shasum":"61e82eaa3eecff5314994ca182ffb1a35fbb9316","size":6384,"noattachment":false,"key":"/file-path-filter/-/file-path-filter-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-path-filter/download/file-path-filter-1.0.2.tgz"},"maintainers":[{"name":"jamesmessinger","email":"james.messinger@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-path-filter_1.0.2_1560816407297_0.4617410284484149"},"_hasShrinkwrap":false,"publish_time":1560816407379,"_cnpm_publish_time":1560816407379},"1.0.1":{"name":"file-path-filter","version":"1.0.1","description":"Filters file paths using globs, regular expressions, or custom criteria","keywords":["filter","find","file","path","regex","regexp","glob","include","exclude"],"author":{"name":"James Messinger","url":"https://jamesmessinger.com"},"license":"MIT","homepage":"https://jsdevtools.org/file-path-filter","repository":{"type":"git","url":"git+https://github.com/JS-DevTools/file-path-filter.git"},"main":"lib/index.js","types":"lib/index.d.js","scripts":{"clean":"shx rm -rf .nyc_output coverage lib","lint":"npm run lint:typescript && npm run lint:javascript","lint:typescript":"tslint -p tsconfig.json","lint:javascript":"eslint test","build":"tsc","watch":"tsc --watch","test":"mocha && npm run lint","coverage":"nyc mocha","upgrade":"npm-check -u","bump":"bump --tag --push --all","release":"npm run upgrade && npm run clean && npm run build && npm test && npm run bump"},"engines":{"node":">=8"},"devDependencies":{"@types/chai":"^4.1.7","@types/command-line-args":"^5.0.0","@types/glob-to-regexp":"^0.4.0","@types/mocha":"^5.2.7","@types/node":"^12.0.7","chai":"^4.2.0","chai-exec":"^1.1.1","coveralls":"^3.0.4","eslint":"^5.16.0","eslint-config-modular":"^7.0.0","mocha":"^6.1.4","npm-check":"^5.9.0","nyc":"^14.1.1","shx":"^0.3.2","tslint":"^5.17.0","tslint-modular":"^1.4.1","typescript":"^3.5.1","typescript-tslint-plugin":"^0.5.0","version-bump-prompt":"^5.0.3"},"dependencies":{"glob-to-regexp":"^0.4.1"},"gitHead":"3d11b8f293ad1f505f4ea23b833374a5959d9886","bugs":{"url":"https://github.com/JS-DevTools/file-path-filter/issues"},"_id":"file-path-filter@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"8.16.0","_npmUser":{"name":"jamesmessinger","email":"james.messinger@gmail.com"},"dist":{"shasum":"da553efc38117e94c767fc3b936094417f8ae506","size":6374,"noattachment":false,"key":"/file-path-filter/-/file-path-filter-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-path-filter/download/file-path-filter-1.0.1.tgz"},"maintainers":[{"name":"jamesmessinger","email":"james.messinger@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-path-filter_1.0.1_1560815291865_0.19354240280581592"},"_hasShrinkwrap":false,"publish_time":1560815291989,"_cnpm_publish_time":1560815291989},"1.0.0":{"name":"file-path-filter","version":"1.0.0","description":"Filters file paths using globs, regular expressions, or custom criteria","keywords":["filter","find","file","path","regex","regexp","glob","include","exclude"],"author":{"name":"James Messinger","url":"https://jamesmessinger.com"},"license":"MIT","homepage":"https://jsdevtools.org/file-path-filter","repository":{"type":"git","url":"git+https://github.com/JS-DevTools/file-path-filter.git"},"main":"lib/index.js","types":"lib/index.d.js","scripts":{"clean":"shx rm -rf .nyc_output coverage lib","lint":"npm run lint:typescript && npm run lint:javascript","lint:typescript":"tslint -p tsconfig.json","lint:javascript":"eslint test","build":"tsc","watch":"tsc --watch","test":"mocha && npm run lint","coverage":"nyc mocha","upgrade":"npm-check -u","bump":"bump --tag --push --all","release":"npm run upgrade && npm run clean && npm run build && npm test && npm run bump"},"engines":{"node":">=8"},"devDependencies":{"@types/chai":"^4.1.7","@types/command-line-args":"^5.0.0","@types/glob-to-regexp":"^0.4.0","@types/mocha":"^5.2.7","@types/node":"^12.0.7","chai":"^4.2.0","chai-exec":"^1.1.1","coveralls":"^3.0.4","eslint":"^5.16.0","eslint-config-modular":"^7.0.0","mocha":"^6.1.4","npm-check":"^5.9.0","nyc":"^14.1.1","shx":"^0.3.2","tslint":"^5.17.0","tslint-modular":"^1.4.1","typescript":"^3.5.1","typescript-tslint-plugin":"^0.5.0","version-bump-prompt":"^5.0.3"},"dependencies":{"glob-to-regexp":"^0.4.1"},"gitHead":"bd84bf0e528006945295c94b2d82572c368af62b","bugs":{"url":"https://github.com/JS-DevTools/file-path-filter/issues"},"_id":"file-path-filter@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.16.0","_npmUser":{"name":"jamesmessinger","email":"james.messinger@gmail.com"},"dist":{"shasum":"036c2637eb0783307b17ed284a4152dc4425859d","size":6373,"noattachment":false,"key":"/file-path-filter/-/file-path-filter-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-path-filter/download/file-path-filter-1.0.0.tgz"},"maintainers":[{"name":"jamesmessinger","email":"james.messinger@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-path-filter_1.0.0_1560778031598_0.47356404476539327"},"_hasShrinkwrap":false,"publish_time":1560778031685,"_cnpm_publish_time":1560778031685}},"readme":"# File Path Filter\nFilters file paths using globs, regular expressions, or custom criteria\n\n[![Cross-Platform Compatibility](https://jstools.dev/img/badges/os-badges.svg)](https://github.com/JS-DevTools/file-path-filter/actions)\n[![Build Status](https://github.com/JS-DevTools/file-path-filter/workflows/CI-CD/badge.svg)](https://github.com/JS-DevTools/file-path-filter/actions)\n\n[![Coverage Status](https://coveralls.io/repos/github/JS-DevTools/file-path-filter/badge.svg?branch=master)](https://coveralls.io/github/JS-DevTools/file-path-filter)\n[![Dependencies](https://david-dm.org/JS-DevTools/file-path-filter.svg)](https://david-dm.org/JS-DevTools/file-path-filter)\n\n[![npm](https://img.shields.io/npm/v/@jsdevtools/file-path-filter.svg)](https://www.npmjs.com/package/@jsdevtools/file-path-filter)\n[![License](https://img.shields.io/npm/l/@jsdevtools/file-path-filter.svg)](LICENSE)\n[![Buy us a tree](https://img.shields.io/badge/Treeware-%F0%9F%8C%B3-lightgreen)](https://plant.treeware.earth/JS-DevTools/file-path-filter)\n\n\n\nExample\n--------------------------\n\n```javascript\nconst filePathFilter = require(\"@jsdevtools/file-path-filter\");\n\nconst paths = [\n  \"/some/path/index.html\",\n  \"/some/path/contact.html\",\n  \"/some/path/about.html\",\n  \"/some/path/favicon.ico\",\n  \"/some/path/img/logo.png\",\n];\n\n// Filter using a glob pattern\npaths.filter(filePathFilter(\"**/*.html\"));\n\n// Exclude glob patterns with \"!\"\npaths.filter(filePathFilter(\"**/*.html\", \"!**/index.html\"));\n\n// Filter using a regular expression\npaths.filter(filePathFilter(/\\.(ico|png)$/));\n\n// Filter using custom criteria\npaths.filter(filePathFilter(path => path.length === 23));\n\n// Use any combination of filters\npaths.filter(filePathFilter([\n  \"**/*.html\",\n  \"!**/index.html\",\n  /\\.(ico|png)$/,\n  path => path.length === 23\n]));\n\n// Explicitly specify include and exclude criteria\npaths.filter(filePathFilter({\n  include:  [\n    \"**/*.html\",\n    /\\.(ico|png)$/,\n    path => path.length === 23\n  ],\n  exclude: \"**/index.html\",\n));\n\n```\n\n\n\nInstallation\n--------------------------\nYou can install File Path Filter via [npm](https://docs.npmjs.com/about-npm/).\n\n```bash\nnpm install @jsdevtools/file-path-filter\n```\n\n\n\nUsage\n--------------------------\n\n### filePathFilter(criteria)\n\n- **`criteria`** - The filter criteria. This can be any of the following:\n  - A boolean. `true` will match all files. `false` will not match any files.\n  - A [glob pattern](https://en.wikipedia.org/wiki/Glob_(programming)). If the pattern starts with `!`, then it will be treated as an `exclude` pattern (see below)\n  - A [regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp)\n  - A [filter function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter#Syntax) that accepts a file path and returns `true` if the file should be matched\n  - An array containing any combination of the above types\n  - An object with `include` and `exclude` properties. Each of these properties can be any of the above types.  File paths will be matched if they match any of the `include` criteria and do not match any of the `exclude` criteria.\n\n- **`return value`** - A [filter function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter#Syntax) that matches file paths that meet the specified criteria\n\n\n### createFilter(options, criteria)\n\n- **`options`** - An object with some or all of the following properties:\n  - `map` - A function that maps filtered items to file paths\n  - `sep` - A custom path separator, such as `\\` or `/`\n\n- **`criteria`** - The filter criteria. See the [`filePathFilter`](#filepathfiltercriteria) for details.\n\n- **`return value`** - A [filter function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter#Syntax) that matches file paths that meet the specified criteria\n\nThe `createFilter` function is an alternative to the `filePathFilter` function that allows you to customize the behavior to suit your needs.\n\n#### Filtering objects\nThe `filePathFilter` function creates a function that filters arrays of strings, but what if you need to filter an array of objects instead?  That's where the `map` option comes in handy. You can use it to map objects (or any other value) to file paths.  Here's an example:\n\n```javascript\nconst { createFilter } = require(\"@jsdevtools/file-path-filter\");\nconst path = require(\"path\");\n\nconst files = [\n  { dir: \"/my/website\", filename: \"index.html\" },\n  { dir: \"/my/website\", filename: \"contact.html\" },\n  { dir: \"/my/website/blog\", filename: \"post-1.html\" },\n  { dir: \"/my/website/blog\", filename: \"post-2.html\" },\n];\n\n// A function to returns the path of each file\nfunction map(file) {\n  return path.join(file.dir, file.filename);\n}\n\n// Filter the file objects - return all HTML files except the blog posts\nfiles.filter(createFilter({ map }, \"**/*.html\", \"!**/blog/*.html\"));\n```\n\n\nContributing\n--------------------------\nContributions, enhancements, and bug-fixes are welcome!  [Open an issue](https://github.com/JS-DevTools/file-path-filter/issues) on GitHub and [submit a pull request](https://github.com/JS-DevTools/file-path-filter/pulls).\n\n#### Building\nTo build the project locally on your computer:\n\n1. __Clone this repo__<br>\n`git clone https://github.com/JS-DevTools/file-path-filter.git`\n\n2. __Install dependencies__<br>\n`npm install`\n\n3. __Build the code__<br>\n`npm run build`\n\n4. __Run the tests__<br>\n`npm test`\n\n\n\nLicense\n--------------------------\nFile Path Filter is 100% free and open-source, under the [MIT license](LICENSE). Use it however you want.\n\nThis package is [Treeware](http://treeware.earth). If you use it in production, then we ask that you [**buy the world a tree**](https://plant.treeware.earth/JS-DevTools/file-path-filter) to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.\n\n\n\nBig Thanks To\n--------------------------\nThanks to these awesome companies for their support of Open Source developers ❤\n\n[![Travis CI](https://jstools.dev/img/badges/travis-ci.svg)](https://travis-ci.com)\n[![SauceLabs](https://jstools.dev/img/badges/sauce-labs.svg)](https://saucelabs.com)\n[![Coveralls](https://jstools.dev/img/badges/coveralls.svg)](https://coveralls.io)\n","_attachments":{},"homepage":"https://jstools.dev/file-path-filter","bugs":{"url":"https://github.com/JS-DevTools/file-path-filter/issues"},"license":"MIT"}