pystring
v1.0.3
Published
string constants similar to python's string module
Downloads
5
Maintainers
Readme
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.