Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including eff-dice-generator with all npm packages installed. Try it out:

var effDiceGenerator = require("eff-dice-generator")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

eff-dice-generator v1.0.0

A passphrase generator, powered by's dice words


Create strong passphrases using suggested wordlists.


npm install eff-dice-generator  


yarn add eff-dice-generator


const generatePassphrase = require("eff-dice-generator");

const passPhrase = generatePassphrase(5);


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.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free