glub

1.0.3 • Public • Published

glub

NPM version Build status Test coverage Downloads

Small wrapper around glob to allow mutiple args, useful for consuming mutiple command line args

var glub = require('glub');
 
// process.argv === ['node', 'index', '**/*.js', '!node_modules/**/*.js']
var files = glub.sync(process.argv.slice(2));
 
glub(process.argv.slice(2), function(err, files) {
 
});

It takes an optional second options param which just forwards to glob (the ignore prop gets pushed values)

Readme

Keywords

Package Sidebar

Install

npm i glub

Weekly Downloads

5,572

Version

1.0.3

License

MIT

Last publish

Collaborators

  • kolodny