1.0.3 • Published 2 years ago

pystring v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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.

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago