chc-posix

0.0.2 • Public • Published

chc-posix

Character Classes according to POSIX

Depends on chc and offers predefined charsets according POSIX.

Table of contents

Links

Get Started

const chc = require('chc-posix');
 
const cs = chc.posix('upper');
// RETURN new CharSet() containing A-Z
 
cs.next();
// RETURN 'A'

See chc for details about class CharSet.

API

  • chc.CharSet chc.posix(string name)
    Create an CharSet instance containing specified characters. Argument name may be:
    • lower
    • upper
    • number
    • alpha
    • alnum
    • xdigit

Package Sidebar

Install

npm i chc-posix

Weekly Downloads

1

Version

0.0.2

License

none

Unpacked Size

3.58 kB

Total Files

6

Last publish

Collaborators

  • youngoat