random-word
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/random-word package

3.0.0 • Public • Published

random-word

Get a random English word

Install

npm install random-word

Usage

import randomWord from 'random-word';

randomWord();
//=> 'ferriferous'

randomWord();
//=> 'microfloppies'

The underlying list of words is a 2.7 MB text file with 274,925 English words.

Related

Package Sidebar

Install

npm i random-word

Weekly Downloads

463

Version

3.0.0

License

MIT

Unpacked Size

2.63 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus