1.1.1 • Published 3 years ago
simple-random-string-creator v1.1.1
Simple Random String Generator
Created to return a string of random letters and numbers.
There are two possible parameters:
- Character Limit: provide a number to set the length of the string. (default = 11)
- Complex: provide a boolean if you want to include special characters or not. (default = false)
Install
yarn add simple-random-string-creator
or
npm i simple-random-string-creator
Usage
import randString from 'simple-random-string-creator';
const example1 = randString() // RJu1EZ2QI8Q
const example2 = randString(16) // tQw0AD3Gc9dq0Kb1
const example3 = randString(11, true) // sQU7R/3WF6}
------------------------------------------------------------------------------------------------
const example4 = randString(true) // Will result in a random char, just one (non-complex).