sensordb2 e64a8defe5 3.17 | 1 年之前 | |
---|---|---|
.. | ||
LICENSE | 1 年之前 | |
README.md | 1 年之前 | |
index.js | 1 年之前 | |
package.json | 1 年之前 |
Returns an object with a
negated
boolean and the!
stripped from negation patterns. Also respects extglobs.
Install with npm:
$ npm install --save is-negated-glob
var isNegatedGlob = require('is-negated-glob');
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 }
true
if the given string looks like a glob pattern or an extglob pattern… more | homepagePull requests and stars are always welcome. For bugs and feature requests, please create an issue.
(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)
To generate the readme and API documentation with verb:
$ npm install -g verb verb-generate-readme && verb
Install dev dependencies:
$ npm install -d && npm test
Jon Schlinkert
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb-generate-readme, v0.1.30, on September 08, 2016.