ws

word-stream

Returns a stream of English words

Showing:

Popularity

Downloads/wk

0

GitHub Stars

13

Maintenance

Last Commit

10mos ago

Contributors

3

Package

Dependencies

2

Size (min+gzip)

8.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

word-stream Build Status

Returns a stream of English words from the Letterpress Word List

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

Install

$ npm install --save word-stream

Usage

const wordStream = require('word-stream');

wordStream.on('data', word => {
    console.log(word);
});
//=> …
//=> abmhos
//=> abnegate
//=> …

Tip

You can get all the words at once by using get-stream:

const getStream = require('get-stream');
const wordStream = require('word-stream');

getStream.array(wordStream).then(words =>
    console.log(words);
    //=> […, 'abmhos', 'abnegate', …]
});

License

MIT © Sindre Sorhus

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial