3.0.0 • Published 3 days ago

word-stream v3.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
3 days ago

word-stream

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 word-stream

Usage

import wordStream from 'word-stream';

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

Tip

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

import wordStream from 'word-stream';
import {getStreamAsArray} from 'get-stream';

console.log(await getStreamAsArray(wordStream()));
//=> […, 'abmhos', 'abnegate', …]
3.0.0

3 days ago

2.0.0

7 years ago

1.1.0

8 years ago

1.0.1

9 years ago

1.0.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago