charand
v1.0.0
Published
A simple node package that generates random character of any given length
Downloads
4
Maintainers
Readme
Charand
A simple node package that generates random character of any given length
install
install with npm:
$ npm install charand --save
usage
//require the package
var random = require('charand');
methods
//random lowercase alphanumeric characters
lowGen(length);
//random uppercase alphanumeric characters
highGen(length);
//random alphanumeric characters(both uppercase and lowercase)
allGen(length);
//random characters in various forms, special characters inclusive
charGen(length);
- length{Number}: (optional) The default value is 15.
example
- Calling a method without any parameter:
random.lowGen();
//returns the default 15 random characters
//=>"hjuekshg35hst61"
- Calling a method with a parameter{length}:
random.allGen(9);
//returns 9 random characters
//=>"xc@#RA_l8"
password
This node package can also be utilized in the creation of strong passwords. By making use of the allGen method
what next?
lets meet on twitter for more updates