eff-dice-generator

1.0.0 • Public • Published

eff-dice-generator

Create strong passphrases using eff.org suggested wordlists.

Installation

npm install eff-dice-generator  

or

yarn add eff-dice-generator

Usage

const generatePassphrase = require("eff-dice-generator");
 
const passPhrase = generatePassphrase(5);
 
console.log(passPhrase);

generatePassphrase (no_of_dice, is_short)

  • no_of_dice: The no. of dice you want to use. Either 4 / 5
  • isshort: Use the short wordlist. (Applicable for only _4 dice roll)

Footnote: Since this package contains the entire wordlist, when importing, use code splitting to avoid large bundle sizes.

/eff-dice-generator/

    Package Sidebar

    Install

    npm i eff-dice-generator

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    418 kB

    Total Files

    7

    Last publish

    Collaborators

    • giridharangm