flyd-glob
file glob and watch for Flyd.
var flyd = var glob = var gs = /* subscribe on all filenames matched */flyd
var flyd = var watch = var gs = /* watch on changed files, get changes */flyd
API
glob (glob.js):
Get stream of filenames matching certain glob expr in string or any of glob exprs in array of strings. Stream will emit all filenames on next tick and then end.
→ stream of filenames → stream of filenames → stream of filenames → stream of filenames
glob engine is provided by globule
,
check its documentation for full list of options.
watch (watch.js):
Get stream of changes of files matching certain glob expr in string or any of glob exprs in array of strings. Stream will emit changes. Stream will never end, unless you do it manually. If you force stream to end, it will release underlying watch utility.
→ stream of changes → stream of changes → stream of changes → stream of changes change = event filename event = watch event
watch engine is provided by chokidar
,
check its documentation for full list of options.
license
MIT © 2016 StreetStrider.