Socket
Book a DemoInstallSign in
Socket

word-stream

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

word-stream

Returns a stream of English words

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

word

FAQs

Package last updated on 30 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts