Charand
A simple node package that generates random character of any given length
install
install with npm:
$ npm install charand --save
usage
//require the packagevar random = ;
methods
//random lowercase alphanumeric characters;//random uppercase alphanumeric characters;//random alphanumeric characters(both uppercase and lowercase);//random characters in various forms, special characters inclusive;
- length{Number}: (optional) The default value is 15.
example
- Calling a method without any parameter:
random;//returns the default 15 random characters//=>"hjuekshg35hst61"
- Calling a method with a parameter{length}:
random;//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