is-glob-blacklist

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i is-glob-blacklist

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • jmversteeg