1.0.3 • Published 3 years ago

@mskashef/random-string-generator v1.0.3

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

Random String Generator

Sample Usage

const RandomStringGenerator = require("@mskashef/random-string-generator");

const myRSG = RandomStringGenerator('0123456789ABCDEF', 6);

console.log(myRSG.new()); // C57F56
console.log(myRSG.new()); // 071F93
console.log(myRSG.new()); // 79DD28
console.log(myRSG.new()); // 88F402
console.log(myRSG.new()); // 42CF9C

or with a custom length at each time:

console.log(myRSG.new(5)); // 6AE7F