Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 324 Bytes

.verb.md

File metadata and controls

15 lines (11 loc) · 324 Bytes

Usage

var isNegatedGlob = require('{%= name %}');

console.log(isNegatedGlob('foo'));
// { pattern: 'foo', negated: false }

console.log(isNegatedGlob('!foo'));
// { pattern: 'foo', negated: true }

console.log(isNegatedGlob('!(foo)'));
// extglob patterns are ignored
// { pattern: '!(foo)', negated: false }