0.0.4 • Published 3 years ago

@rnowotniak/genpass v0.0.4

Weekly downloads
5
License
ISC
Repository
github
Last release
3 years ago

Password generator in JavaScript

GitHub last commit GitHub top language

Contact: Robert Nowotniak <rnowotniak@gmail.com>

Usage

$ ./genpass.js -h
usage: genpass.js [-h] [--length LENGTH] [--symbols] [--upper] [--numbers]

Password generator in JavaScript

optional arguments:
  -h, --help            show this help message and exit
  --length LENGTH, -l LENGTH
                        Password length
  --symbols, -s         Include symbols
  --upper, -u           Include upper case letters
  --numbers, -n         Include numbers

Example

Generate password with default settings

$ ./genpass.js 
uiyvejwy
$ ./genpass.js 
rtedsuea
$ ./genpass.js 
owbqrnql

Customized settings

Length 12 characters, add upper case characters:

$ ./genpass.js -l 12 -u
OZTlVZhSKlZD

Length 6 characters, add symbols:

$ ./genpass.js -l 6 --symbols
fqvrk@

Length 20 characters, add upper case, numbers and symbols:

$ ./genpass.js -l 20 -uns
G7FIq${-5IKp:7`Ex5vI

API documentation

generatePassword() ⇒ String

Generates a random password per settings given in the parameters.

By default 'ab...z' set is used to randomly choose from.

Kind: global function
Returns: String - The generated password

ParamTypeDescription
settings.lengthNumberThe length of password
settings.upperBooleanWhether to use upper case chars additionally
settings.symbolsBooleanWhether to use symbols additionally
settings.numbersBooleanWhether to use numbers additionally
0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago