shrine-medco/shrine-webclient/src/main/html/node_modules/is-posix-bracket23de2099ce18release/1.22.2.4
shrine-medco/shrine-webclient/src/main/html/node_modules/is-posix-bracket
23de2099ce18release/1.22.2.4
is-posix-bracket
is-posix-bracket
README.md
README.md
is-posix-bracket ![NPM version](https://www.npmjs.com/package/is-posix-bracket) ![NPM downloads](https://npmjs.org/package/is-posix-bracket) ![Build Status](https://travis-ci.org/jonschlinkert/is-posix-bracket)
Returns true if the given string is a POSIX bracket expression (POSIX character class).
Install
Install with npm:
sh $ npm install is-posix-bracket --save
Usage
js var isPosixBracket = require('is-posix-bracket'); isPosixBracket('[foo:]]'); //=> false isPosixBracket('[xdigit:]]'); //=> false isPosixBracket('[[:xdigit:]]'); //=> true isPosixBracket('[[:xdigit:]]'); //=> true isPosixBracket('[[:alpha:]123]'); //=> true isPosixBracket('[[:alpha:]123]'); //=> true isPosixBracket('[a-c[:digit:]x-z]'); //=> true isPosixBracket('[:al:]'); //=> true isPosixBracket('[abc[:punct:][0-9]'); //=> true
Related projects
You might also be interested in these projects:
- braces: Fastest brace expansion for node.js, with the most complete support for the Bash 4.3 braces… more | homepage
- expand-brackets: Expand POSIX bracket expressions (character classes) in glob patterns. | homepage
- is-extglob: Returns true if a string has an extglob. | homepage
- is-glob: Returns true if the given string looks like a glob pattern or an extglob pattern.… more | homepage
- micromatch: Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. Just… more | homepage
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Building docs
Generate readme and API documentation with verb:
sh $ npm install verb && npm run docs
Or, if verb is installed globally:
sh $ verb
Running tests
Install dev dependencies:
sh $ npm install -d && npm test
Author
Jon Schlinkert
License
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
_This file was generated by verb, v, on April 05, 2016._
c4science · Help