Bachir Soussi Chiadmi cefd1c2ad0 updated sys and created publi | před 7 roky | |
---|---|---|
.. | ||
node_modules | před 7 roky | |
LICENSE | před 7 roky | |
README.md | před 7 roky | |
index.js | před 7 roky | |
package.json | před 7 roky |
Package | glob-stream |
Description | File system globs as a stream |
Node Version | >= 0.9 |
This is a simple wrapper around node-glob to make it streamy.
var gs = require('glob-stream');
var stream = gs.create("./files/**/*.coffee", {options});
stream.on('data', function(file){
// file has path, base, and cwd attrs
});
You can pass any combination of globs. One caveat is that you can not only pass a glob negation, you must give it at least one positive glob so it knows where to start. All given must match for the file to be returned.
process.cwd()
false
This argument is passed directly to node-glob so check there for more options
var stream = gs.create(["./**/*.js", "!./node_modules/**/*.*"]);