matchfiles
v0.0.6
Published
# Examples ## 最简单的完全匹配 ```javascript var matchFiles = require('../lib/match-files')
Downloads
2
Readme
一个简单文件匹配实现
examples
var matchFiles = require('../lib/match-files')
, Path = require('path')
var root = Path.resolve(Path.dirname(__filename),'../lib')
// root should be a absolute path
var stream = matchFiles(root,'*.js')
stream.on('file',function(abs,filename,extname,$){
console.log(filename)
})
/* result
filter-list.js
path-matcher.js
treestream.js
match-files.js
util.js
*/
TODO
- 测试