0.0.1 • Published 9 years ago

is-glob-blacklist v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

is-glob-blacklist Build Status

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