glob-ignore

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i glob-ignore

Weekly Downloads

212

Version

1.0.2

License

MIT

Last publish

Collaborators

  • leelow