word-list
TypeScript icon, indicating that this package has built-in type declarations

3.1.0 • Public • Published

word-list Build Status

List of English words

Useful if you're creating a word game or just want some words to work with.

Used by word-stream and random-word.

One-letter words are not included. Many common bad words are also filtered out.

Install

$ npm install word-list

Usage

const fs = require('fs');
 
// Returns the path to the word list which is separated by `\n`
const wordListPath = require('word-list');
 
const wordArray = fs.readFileSync(wordListPath, 'utf8').split('\n');
//=> […, 'abmhos', 'abnegate', …]

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.1.0
    1,830
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.1.0
    1,830
  • 3.0.0
    0
  • 2.0.0
    647
  • 1.0.1
    467
  • 1.0.0
    2
  • 0.1.0
    1

Package Sidebar

Install

npm i word-list

Weekly Downloads

2,693

Version

3.1.0

License

MIT

Unpacked Size

2.81 MB

Total Files

6

Last publish

Collaborators

  • sindresorhus