charand

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i charand

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.11 kB

Total Files

3

Last publish

Collaborators

  • deityhub