custom-human-password

1.0.0 • Public • Published

HumanPassword

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

Installation

npm install custom-human-password --save

Example

Basic

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

humanPassword();
// => 'fuxeru9070'

With options

Name Type Default Description
couples integer 3 Couple of consonant + vowel
digits integer 4 Number of digits, if is 0 number will be hidden
randomUpper boolean false Random letters uppercase
numberPosition string end Number position in string, can be "start", "middle", "end" and "random"
var humanPassword = require('custom-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

/custom-human-password/

    Package Sidebar

    Install

    npm i custom-human-password

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    11 kB

    Total Files

    6

    Last publish

    Collaborators

    • nocrycooper