0.0.6 • Published 11 years ago

matchfiles v0.0.6

Weekly downloads
103
License
-
Repository
github
Last release
11 years ago

一个简单文件匹配实现

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

  • 测试
0.0.6

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.1

11 years ago