{"_id":"file-match","_rev":"8-e67a0b0b7b0aae709feb224640b89600","name":"file-match","description":"Match filepath is validated, or exclude filepath that don't need.","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"file-match","version":"1.0.0","description":"Match filepath is validated, or exclude filepath that don't need.","main":"filepath-match.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"https://github.com/douzi8/utils-extend"},"keywords":["filepath","match","minimatch","grunt filematch"],"author":{"name":"douzi","email":"liaowei08@gmail.com"},"devDependencies":{"grunt":"^0.4.5","grunt-contrib-jshint":"^0.10.0","mocha":"^2.0.1"},"license":"ISC","bugs":{"url":"https://github.com/douzi8/utils-extend/issues"},"dependencies":{"utils-extend":"^1.0.6"},"gitHead":"2e7245f9f253223acbea3c113bb530a18b49693d","homepage":"https://github.com/douzi8/utils-extend","_id":"file-match@1.0.0","_shasum":"d0f047810efcdd5cf3be091a179b0a66ac450695","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"douzi","email":"liaowei08@gmail.com"},"maintainers":[{"name":"douzi","email":"liaowei08@gmail.com"}],"dist":{"shasum":"d0f047810efcdd5cf3be091a179b0a66ac450695","tarball":"https://registry.npmjs.org/file-match/-/file-match-1.0.0.tgz","integrity":"sha512-YsuU1pIk4BOEh75AJFlWhe2TyKN2/e6aS0/4TRQj1m0Pzj3Mv9ShXSe2K4qDySKUa9NluU0jdQ8nvuXrX3HN7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICXFRblWFK0xsgXVJf+8eVNhU4pNp62GjD9nuiPTDjbKAiA09xTtXZaV0OsBKOFRGmbee/F4sue+3b2u3bfpo3wReg=="}]}},"1.0.1":{"name":"file-match","version":"1.0.1","description":"Match filepath is validated, or exclude filepath that don't need.","main":"file-match.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"https://github.com/douzi8/file-match"},"keywords":["filepath","match","minimatch","grunt filematch"],"author":{"name":"douzi","email":"liaowei08@gmail.com"},"devDependencies":{"grunt":"^0.4.5","grunt-contrib-jshint":"^0.10.0","mocha":"^2.0.1"},"license":"ISC","bugs":{"url":"https://github.com/douzi8/file-match/issues"},"dependencies":{"utils-extend":"^1.0.6"},"gitHead":"129a695b6e406d7a40e3777f5a646077e7d20a9e","homepage":"https://github.com/douzi8/file-match","_id":"file-match@1.0.1","_shasum":"9af60638fe6826c41b8320e7b0849c7aba7263b2","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"douzi","email":"liaowei08@gmail.com"},"maintainers":[{"name":"douzi","email":"liaowei08@gmail.com"}],"dist":{"shasum":"9af60638fe6826c41b8320e7b0849c7aba7263b2","tarball":"https://registry.npmjs.org/file-match/-/file-match-1.0.1.tgz","integrity":"sha512-mFNJAh2LUMDEZG+FN4TMSHJmAmfzHizzmvxMntMY7BqvL1Xy1ya2RY5gWXz8mV55KEs8dOko+7MTDw2x/yxVow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGOaRcVZQpdJ2wZDVkZY+YlQNJpwa31/uS+n7v/sDhDGAiEAsumt6OZYQkvPoIZvPkQ6WUQTphaAcZRka6C4nXhgvuQ="}]}},"1.0.2":{"name":"file-match","version":"1.0.2","description":"Match filepath is validated, or exclude filepath that don't need.","main":"file-match.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"https://github.com/douzi8/file-match"},"keywords":["filepath","match","minimatch","grunt filematch"],"author":{"name":"douzi","email":"liaowei08@gmail.com"},"devDependencies":{"grunt":"^0.4.5","grunt-contrib-jshint":"^0.10.0","mocha":"^2.0.1"},"license":"ISC","bugs":{"url":"https://github.com/douzi8/file-match/issues"},"dependencies":{"utils-extend":"^1.0.6"},"gitHead":"56c84ddab3004eea72fd941b3b158adbc1f02c1f","homepage":"https://github.com/douzi8/file-match","_id":"file-match@1.0.2","_shasum":"c9cad265d2c8adf3a81475b0df475859069faef7","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"douzi","email":"liaowei08@gmail.com"},"maintainers":[{"name":"douzi","email":"liaowei08@gmail.com"}],"dist":{"shasum":"c9cad265d2c8adf3a81475b0df475859069faef7","tarball":"https://registry.npmjs.org/file-match/-/file-match-1.0.2.tgz","integrity":"sha512-g9p6bZV3HlSUM35QPvFWiP/PckDVe5jLPDhx6PfMuy06o+htesJTyDu7zRdXnOm3BY8pXmxb+QY5qIcsoWMGNg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAJM95Xd6eanfI2Ha+ZpOPvfQy6Hb497qNjQ0zfohM+iAiBMBEaPnI/C+qXgMt2osda+daWhZlqVExcMdhTm5RveVg=="}]}}},"readme":"file-match\n==========\n\nMatch filepath is validated, or exclude filepath that don't need\n\n```js\nvar fileMatch = require('file-match');\n\nvar filter = fileMatch('*.js');\n\nfilter('a.js');            // true\nfilter('path/a.js');       // false\n\nvar filter = fileMatch([\n  '**/*',\n  '!path/*.js'\n  '!img/**/.{jpg,png,gif}'\n]);\n\nfilter('src/demo.js')           // true\nfilter('path/demo.js')          // false\nfilter('path/path/demo.js')     // true\nfilter('img/demo.png')          // false\nfilter('img/path/demo.png')     // false\n\nvar filter = fileMatch([\n  'path/*.js'\n], true);\n\n```\n\nIf the filter value is empty string or empty arry, it will always return false,\nif it's ``null``, will always return true.\n\n#### filter description\n* `*.js`  only match js files in current dir.\n* `**/*.js` match all js files.\n* `path/*.js` match js files in path.\n* `!*.js` exclude js files in current dir.\n* ``.{jpg,png,gif}`` means jpg, png or gif\n```\n'**/*'                 // Match all files\n'!**/*.js'             // Exclude all js files\n'**/*.{jpg,png,gif}'   // Match jpg, png, or gif files\n```\n\n### ignore case\n* ignore {boolean} [ignore = false]","maintainers":[{"name":"douzi","email":"liaowei08@gmail.com"}],"time":{"modified":"2022-06-18T00:37:04.325Z","created":"2014-12-07T14:30:23.529Z","1.0.0":"2014-12-07T14:30:23.529Z","1.0.1":"2014-12-07T14:34:43.075Z","1.0.2":"2014-12-18T04:07:52.150Z"},"homepage":"https://github.com/douzi8/file-match","keywords":["filepath","match","minimatch","grunt filematch"],"repository":{"type":"git","url":"https://github.com/douzi8/file-match"},"author":{"name":"douzi","email":"liaowei08@gmail.com"},"bugs":{"url":"https://github.com/douzi8/file-match/issues"},"license":"ISC","readmeFilename":"README.md"}