1.0.4 • Published 7 years ago

human-password v1.0.4

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

HumanPassword

Simple library to generate a password (string + number) easy to remember.

Build Status Coverage Status

Installation

npm install human-password --save

Example

Basic

var humanPassword = require('human-password');

humanPassword();
// => 'fuxeru9070'

With options

NameTypeDefaultDescription
couplesinteger3Couple of consonant + vowel
digitsinteger4Number of digits, if is 0 number will be hidden
randomUpperbooleanfalseRandom letters uppercase
numberPositionstringendNumber position in string, can be "start", "middle", "end" and "random"
var humanPassword = require('human-password');

humanPassword({
    couples: 5,
    digits: 4,
    randomUpper: true
});
// => 'PutIGoKobi7136'

// Hide number
humanPassword({
    couples: 5,
    digits: 0
});
// => 'gicominobi'

// Number in start position
humanPassword({
    couples: 5,
    digits: 4,
    numberPosition: 'start'
});
// => '6539vikohylure'

License

HumanPassword is open-sourced software licensed under the MIT license

Author

Fabio Ricali

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago