0.1.1 • Published 9 years ago

is-posix-bracket v0.1.1

Weekly downloads
3,020,242
License
MIT
Repository
github
Last release
9 years ago

is-posix-bracket NPM version NPM downloads Build Status

Returns true if the given string is a POSIX bracket expression (POSIX character class).

Install

Install with npm:

$ npm install is-posix-bracket --save

Usage

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:

$ npm install verb && npm run docs

Or, if verb is installed globally:

$ verb

Running tests

Install dev dependencies:

$ 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.

archetype-libraryrn-send-sms@arisageha/react-lazyload@arisageha/react-lazyload-fixcloud-archive-s3@phil8795/pecuniarius-apireact-native-thanh-toast-library@thanhnguyen14797/react-native-thanh-toast-librarypanqibaouinz-notificationunblock-block-save-variables@infinitebrahmanuniverse/nolb-is-p@everything-registry/sub-chunk-1934test-carosello-campusteadanteawed_developerteste_cegidvcloudcam-playkit-js-hlsvideo-multi-uploadervue-dev-clone@caneco/siema@rstacruz/pnpmivanpantekka-flow.jskafirchain-tetris3.0.0start-starwars-libsolregex2uhuy-1uhuy-2uhuy-3typographic-orphantransferprojecttwine-libtwine-library@anonybit-modules/videoreconstruction@affilicon/bbcode-parser@bitfirer/vue-qriously@cdevine49/react-numeric-input@congtuan/custom-componentyashodhhhhhhhhhhhhhhyashodhhhhhhhhhhhhhh22zylvue-v3-yandex-metrikavue-size-trackerwc-starterkit@gzup/react-image-file-resizer@hawkingnetwork/react-native-tab-view@headgum/tko-mapping@innodata/vue-v3-ya-metrika@kristoffertonning/vue-laravel-errors@livecycle.io/rrweb-snapshot@levlevin/react-portal-tooltip@ngxvoice/ngx-voicelistner@ernesto_tech/expo-gl-image-filters@edoroshenko/codemirror@mblode/react-native-feather@poojasupari/helloworld@pav-trc/learn-npm@novembrecom/zxcvbn@seculum/vue-dev-clonemini-vue-validatemiguelcostero-ng2-toastyoutils-renoutesoutepatternxsearch-list-reactsearch-input-reactreact-native-handcheque-enginereact-angular-componentsam-carouselreact-native-brother-projectsamc2samc3samc4samc5prova-2-caroselloprova-cmpprova-cpm-2prova-cpm-3prova-cpm-4react-native-ok-sdkreact-native-version-managernois-react-toastplaykit-js-hls-sondqpolen-web-components-reactprebeneide-first-npm-packageprimeng-customqyx-hmtldiffreact-redux-demo1react-native-template-vifereact-websocketshendo-clihendo-cli-luozheaogzup-react-image-file-resizerh5-templetelierah-8lierah-9lierah-1
0.1.1

9 years ago

0.1.0

10 years ago