0.1.2 • Published 8 years ago

random-password v0.1.2

Weekly downloads
494
License
MIT
Repository
github
Last release
8 years ago

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