yes-no-words

Get yes/no-like words

  • Owner: sindresorhus/yes-no-words
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

yes-no-words Build Status

Get yes/no-like words

The lists are just JSON files and can be used anywhere.

Install

$ npm install yes-no-words

Usage

const yesNoWords = require('yes-no-words');

yesNoWords.yesRandom();
//=> 'Yisss'

API

.yes

Type: string[]

Yes like words.

.no

Type: string[]

No like words.

.all

Type: string[]

Both yes and no like words.

.yesRandom()

Type: Function

Random yes like words.

.noRandom()

Type: Function

Random no like words.

.allRandom()

Type: Function

Random yes or no like words.

CLI

$ npm install --global yes-no-words
$ yes-no --help

  Examples
    $ yes-no
    Yisss

    $ yes-no --all --type yes
    Absolutely
    Affirmative
    …

  Options
    --all   Get all words instead of a random word
    --type  Type of word: yes, no, all  [Default: all]

License

MIT © Sindre Sorhus

Main metrics

Overview
Name With Ownersindresorhus/yes-no-words
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2015-05-14 23:33:50
Pushed At2024-04-30 15:50:24
Last Commit At
Release Count9
Last Release Namev3.0.0 (Posted on 2024-04-30 22:50:03)
First Release Namev1.0.0 (Posted on 2015-05-15 01:38:15)
用户参与
Stargazers Count133
Watchers Count7
Fork Count13
Commits Count31
Has Issues Enabled
Issues Count0
Issue Open Count0
Pull Requests Count6
Pull Requests Open Count0
Pull Requests Close Count4
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private