1.0.3 • Published 2 years ago
uni-random v1.0.3
uni-random
A simple javascript libary for generating random string
Installation
To install uni-random, use npm:
npm install uni-random
Usage
import uniRandom from "uni-random";
uniRandom();
// >> "z3odKHvQpFoZZ0w"
uniRandom({
length: 20,
charset: 'alphanumeric',
capitalization: null
});
// >> "CaIDjM0ZbH5smjiKFk9W"
uniRandom({
charset: 'github',
});
// >> "tgghubuhhbibbgi"
API
uniRandom(options)
LICENSE
uni-random is licensed under the MIT license.