Socket
Book a DemoInstallSign in
Socket

harver-engineering-word-maker

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

harver-engineering-word-maker

Makes random words

unpublished
latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Word Maker

Usage

const { getRandomWordSync } = require('random-word');

const word = getRandomWordSync({ withErrors: false });
console.log(word);

API

getRandomWordSync(): string

Returns a random word

Params

opts: object

An map of options

opts.withErrors: boolean

Will intermittently throw/reject instead of returning a random word.

Default: false

getRandomWord(): Promise

Asynchronous version of getRandomWordSync(). Returns a Promise which resolves to a random word string

Params

opts: Object

An map of options

opts.withErrors: boolean

Will intermittently throw/reject instead of a random

Default: false

FAQs

Package last updated on 20 Nov 2019

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