Create strong passphrases using eff.org suggested wordlists.
npm install eff-dice-generator
or
yarn add eff-dice-generator
const generatePassphrase = require("eff-dice-generator");
const passPhrase = generatePassphrase(5);
console.log(passPhrase);
- no_of_dice: The no. of dice you want to use. Either 4 / 5
- is_short: 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.