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

0.2.0 • Public • Published

word-list-json

List of English words

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

Used by name-me.

Install

$ npm install --save word-list-json

Usage

// a json array of words
var wordList = require('word-list-json');

wordlist is sorted by length, in addition to the usual length property the array also has a 'lengths' property which is a dict with keys of word lengths and values which are the array index after the last word of that length e.g. what the array length would be if it had no words with a longer length.

License

MIT © Sindre Sorhus

Package Sidebar

Install

npm i word-list-json

Weekly Downloads

304

Version

0.2.0

License

MIT

Last publish

Collaborators

  • cwmma