Skip to content

sgtlambda/is-glob-blacklist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Detect whether an array of globs is a blacklist

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published