is-glob-blacklist
v0.0.1
Published
Detect whether an array of globs is a blacklist
Downloads
1
Readme
is-glob-blacklist
Detect whether an array of globs is a blacklist
Install
$ npm install --save is-glob-blacklist
Usage
var isGlobBlacklist = require('is-glob-blacklist');
isGlobBlacklist(['foo']);
//=> false
isGlobBlacklist(['!foo']);
//=> true
isGlobBlacklist(['foo', '!foo/bar']);
//=> false
isGlobBlacklist(['!foo', 'foo/bar']);
//=> true
API
isGlobBlacklist(input)
input
Type: string[]
Array of globs.
License
MIT © JM Versteeg