https://github.com/sgtlambda/is-glob-blacklist
Detect whether an array of globs is a blacklist
https://github.com/sgtlambda/is-glob-blacklist
Last synced: about 1 year ago
JSON representation
Detect whether an array of globs is a blacklist
- Host: GitHub
- URL: https://github.com/sgtlambda/is-glob-blacklist
- Owner: sgtlambda
- License: mit
- Created: 2015-11-01T18:30:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-04T09:12:13.000Z (about 10 years ago)
- Last Synced: 2025-03-16T10:34:17.775Z (about 1 year ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# is-glob-blacklist [](https://travis-ci.org/jmversteeg/is-glob-blacklist)
> Detect whether an array of globs is a blacklist
## Install
```
$ npm install --save is-glob-blacklist
```
## Usage
```js
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](https://github.com/jmversteeg)