$ cnpm install glob-intersect
A function that tells you whether two file globs intersect.
Example
var m = require('glob-intersect');
console.log(m('test/**/*.js', 'test/x/*'));
// true;
Currently supports: star, double-star
Not yet supported: questionmarks (file?.js) and character groups (x[abcd])
MIT
Copyright 2013 - present © cnpmjs.org | Home |