@tanepiper/easypass-2

0.2.1 • Public • Published

EasyPass 2

Pronounceable Password Generator for Node.js,

Installation

npm install easypass-2

API

/**
 * The generate method creates a single string password of described length.
 * If you want to include numbers, set includeNumbers to true
 */
generate(length = 8, includeNumbers = false)

/**
 * This will generate a batch of passwords of the total number passed
 * and return them as an array of strings.  You can also set the length
 * and if they include numbers
 */
batch(total, length, includeNumbers)

Usage

ES6

import {generate, batch} from 'easypass-2';

const newPassword = generate(12, true);
const passwords = batch(100, 12, true);

ES5

var easypass = require('easypass-2');
var newPassword = easypass.generate(12, true);
var passwords = easypass.batch(100, 12, true);

Credits

Based on the original easypass by Irakli Nadareishvili

Based on the original algorithm by Aktagon

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i @tanepiper/easypass-2

    Weekly Downloads

    4

    Version

    0.2.1

    License

    MIT

    Last publish

    Collaborators

    • tanepiper