Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.
/ randpassgen Public archive

My NPM module for creating random strings or passwords in a dead simple way

Notifications You must be signed in to change notification settings

touhidrahman/randpassgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

[DEPRECATED]

Please use improved randpassgen2 package instead.

randpassgen

A simple node module to generate random string of alphanumeric characters and/or symbols.

Installation

$ npm install randpassgen

Usage

$ generate(length[int], uppercase[true|false], symbol[true|false]);

Example

Generate a 8 character random string consisting lowercase, uppercase, numbers and symbols

var pass = require('randpassgen').generate(8);

Generate a 8 character random string consisting only lowercase, numbers and symbols

var pass = require('randpassgen').generate(8, false, true);

Generate a 8 character random string consisting only lowercase and numbers

var pass = require('randpassgen').generate(8, false, false);

About

My NPM module for creating random strings or passwords in a dead simple way

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published