{"_id":"file-match","_rev":"2864415","name":"file-match","description":"Match filepath is validated, or exclude filepath that don't need.","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"douzi","email":"liaowei08@gmail.com"}],"time":{"modified":"2022-09-14T03:06:53.000Z","created":"2014-12-07T14:30:23.529Z","1.0.2":"2014-12-18T04:07:52.150Z","1.0.1":"2014-12-07T14:34:43.075Z","1.0.0":"2014-12-07T14:30:23.529Z"},"users":{},"author":{"name":"douzi","email":"liaowei08@gmail.com"},"repository":{"type":"git","url":"https://github.com/douzi8/file-match"},"versions":{"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","size":2120,"noattachment":false,"key":"/file-match/-/file-match-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-match/download/file-match-1.0.2.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T00:55:22.681Z","publish_time":1418875672150,"_cnpm_publish_time":1418875672150},"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","size":1926,"noattachment":false,"key":"/file-match/-/file-match-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-match/download/file-match-1.0.1.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T00:55:22.580Z","publish_time":1417962883075,"_cnpm_publish_time":1417962883075},"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","size":1927,"noattachment":false,"key":"/file-match/-/file-match-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-match/download/file-match-1.0.0.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T00:55:21.670Z","publish_time":1417962623529,"_cnpm_publish_time":1417962623529}},"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]","_attachments":{},"homepage":"https://github.com/douzi8/file-match","bugs":{"url":"https://github.com/douzi8/file-match/issues"},"license":"ISC"}