npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

word-list

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', …]

install

npm i word-list

Downloadsweekly downloads

1,100

version

3.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability