npm.io
0.2.1 • Published 4 years ago

word-dice

Licence
MIT
Version
0.2.1
Deps
0
Size
142 kB
Vulns
0
Weekly
0
Stars
3

Word dice

A nodejs lib to generate a random word (with true randomness) in the given iso language eg (en-US, pt-PT) Works on nodejs version v15.x or latter

Usage

npm i 'word-dice';

import wordDice from 'word-dice';

const word = wordDice.roll({
  minLength: 3,
  maxLength: 8,
  lang: 'en-US'
});

Supported languages

  • en-US
  • it-IT
  • pt-PT
  • pt-BR
  • pl-PL

Inspired by: https://www.npmjs.com/package/random-words

Keywords