1.0.0 • Published 6 years ago

charand v1.0.0

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

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

  1. Calling a method without any parameter:
random.lowGen();
//returns the default 15 random characters
//=>"hjuekshg35hst61" 
  1. 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