random-key-generator
v1.2.3
Published
it's a light weight random key generator
Downloads
240
Maintainers
Readme
random-key-generator ![Build Status]
Get the latest random-key-generator.
Install
$ npm install random-key-generator
Usage
`import random from 'random-key-generator'
or
var random =require('random-key-generator');
console.log(random()) //default random key
//XXXXXXXXXXXXXXXXXXXXXX
console.log(random(10)) //random key length is 10
//XXXXXXXXXXXXXXXXXXXXXX
Usage2
var random =require('random-key-generator');
random.getRandom(10,'test','*','front');
10: is length of random key
test: default string
*: separtaor:
front: insert default string at front
output
test*XXXXXXXXXXXXX
License
MIT © [Hemanth.cb]