1.0.2 • Published 2 years ago

constantor-js v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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...

ConstantValue
ascii_lowercaseabcdefghijklmnopqrstuvwxyz
ascii_uppercaseABCDEFGHIJKLMNOPQRSTUVWXYZ
ascii_lettersABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
digits0123456789
hexdigits0123456789abcdefABCDEF
octdigits01234567
punctuation!#$%&`'\"(){}[]*+,-_~./\:;<>=?@^|
whitespace\t\n\r\v\f
printableincludes 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

\ This module was heavily inspired by python string/lib

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago