npm install @koding/glohunglob a list of files/globs.
This is cojs/unglob in its bluebird form; api is different and adds a uniq option.
``js`
gloh(['*/.js', 'foo.bar'], {
opts.cwd: somedir,
opts.uniq: true
}, function (err, res) {
// and do the harlem shake
});
opts.cwd is the directory, defaults to process.cwd() if not specified.
opts.uniq` should be set to remove duplicates.
MIT