1.0.2 • Published 2 years ago
constantor-js v1.0.2
constantor-js
A collection of string constants for JavaScript
A constant is used to define a fixed value in a variable that cannot be modified anywhere in the code following declaration. This JavaScript module contains some string constants that can be used for various purposes like generate random string for passwords, tokens etc...
Constant | Value |
---|---|
ascii_lowercase | abcdefghijklmnopqrstuvwxyz |
ascii_uppercase | ABCDEFGHIJKLMNOPQRSTUVWXYZ |
ascii_letters | ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz |
digits | 0123456789 |
hexdigits | 0123456789abcdefABCDEF |
octdigits | 01234567 |
punctuation | !#$%&`'\"(){}[]*+,-_~./\:;<>=?@^| |
whitespace | \t\n\r\v\f |
printable | includes the values of digits, ascii_letters, punctuation & whitespace |
usage
npm i constantor-js
const constantor = require("constantor-js");
console.log(constantor.ascii_lowercase);
output
abcdefghijklmnopqrstuvwxyz