npm.io
1.0.0 • Published 6 years ago

password-generator-random

Licence
ISC
Version
1.0.0
Deps
0
Size
2 kB
Vulns
0
Weekly
0

password-generator-random

This module will help you to generate random password with fully customization string

Installation

password-generator-random requires Node.js v4+ to run.

Install the dependencies and devDependencies and start the server.

$ npm install password-generator-random

How to use it...

let generatePassword = require('password-generator-random');

For normal password with 8 character you no need to pass any arguments it will by default generate 8 character long with all the possible character which one strong password need

Example without parameters
generatePassword() = @q)hJ{dm

This will return 8 character long password

Now let's see one exmple with specific length

Example with only length
generatePassword(15) = Fuv0)`yO}t"yk/{

This will return 15 character long password

Now let't see one example with specific length and specific character for password

Example with length and any character
generatePassword(15,'custom') = utotcommsusuut

This will return 15 character long password with combination only which is possible in given string

License

MIT

Keywords