joaocunha / yes-no-words

Get yes/no like words

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yes-no-words Build Status

Get yes/no like words

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

Install

$ npm install --save yes-no-words

Usage

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

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

API

.yes

Type: array

Yes like words.

.no

Type: array

No like words.

.all

Type: array

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

Related

License

MIT © Sindre Sorhus

About

Get yes/no like words

License:MIT License


Languages

Language:JavaScript 100.0%