You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

random-password

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

random-password

Generate random password.

0.1.2
latest
Source
npmnpm
Version published
Weekly downloads
480
-30.13%
Maintainers
1
Weekly downloads
 
Created
Source

random-password

Generate random password.

Install

$ npm install random-password --save

Example

The length of password should be gived:

var generator=require('random-password');

generator(4);   // 'WA6n'

generator(10);   // '49Pm!N&i9M'

The table to generate password could be specified:

generator(4, '1234567890');  // '5575'

generator(10, '1234567890'); // '1926972366'

If length is Nan, Infinity or -Infinity, the default length 8 will be used:

generator(NaN);  //'0vpgip!G'

License

MIT

Keywords

password

FAQs

Package last updated on 08 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts