npm.io
1.0.3 • Published 4 years ago

pystring

Licence
ISC
Version
1.0.3
Deps
0
Size
2 kB
Vulns
0
Weekly
0

pystring

js implementation of python's string module constants

example usage

const pystring = require('pystring');

String constants defined

pystring.ascii_lowercase

The lowercase letters 'abcdefghijklmnopqrstuvwxyz'.

pystring.ascii_uppercase

The uppercase letters 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.

pystring.ascii_letters

The concatenation of the ascii_lowercase and ascii_uppercase constants.

pystring.digits

The string '0123456789'.

pystring.hexdigits

The string '0123456789abcdefABCDEF'.

pystring.octdigits

The string '01234567'.

pystring.punctuation

String of ASCII characters which are considered punctuation characters in the C locale: !"#$%&'()*+,-./:;<=>?@[]^_`{|}~.

pystring.printable

String of ASCII characters which are considered printable. This is a combination of digits, ascii_letters, punctuation, and whitespace.

pystring.whitespace

A string containing all ASCII characters that are considered whitespace. This includes the characters space, tab, linefeed, return, formfeed, and vertical tab.

Keywords