1.0.2 • Published 7 years ago

glob-ignore v1.0.2

Weekly downloads
89
License
MIT
Repository
github
Last release
7 years ago

glob-ignore

Greenkeeper badge NPM downloads Build Status Build Status Codacy Coverage Codacy Grade Dependencies Dev-dependencies JavaScript Style Guide

Match files using the patterns the shell uses, like stars and stuff.

Install

$ npm install --save glob-ignore

Usage

const glob = require('glob-ignore');

// same usage as node-glob
glob('**', function(err, res) {            // async
  if(err) throw err;
  console.log(res);
});

glob('**');                                // sync

glob('**', 'dir/to/filter/**');            // the second arg is a filter
glob(['a/**', 'b/**'], ['c/**', 'd/**']);  // multiple patterns are allowed 

Test and coverage

You just have to clone the repo and run

$ npm test
$ npm run coverage

License

MIT © Léo Lozach