glub

glub up globs

Usage no npm install needed!

<script type="module">
  import glub from 'https://cdn.skypack.dev/glub';
</script>

README

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)