A wrapper around node-glob to make it streamy
A wrapper around node-glob to make it streamy.
var gs = require'glob-stream';var stream = gscreate'./files/**/*.coffee' /* options */ ;streamon'data'// 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.
Returns a stream for multiple globs or filters.
Returns a stream for a single glob or filter.
This argument is passed directly to node-glob so check there for more options
var stream = gscreate'./**/*.js' '!./node_modules/**/*';
Globs are executed in order, so negations should follow positive globs. For example:
would not exclude any files, but this would
globwrapper with support for multiple patterns.