Skip to content

NewAlexandria/yes-no-i18n

 
 

Repository files navigation

yes-no-i18n

Get yes/no words from the World

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

Install

$ npm install --save yes-no-i18n

Usage

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

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

API

.yes

Type: array

Yes words.

.no

Type: array

No words.

.all

Type: array

Both yes and no words.

.yesRandom()

Type: function

Random yes words.

.noRandom()

Type: function

Random no words.

.yesRandomWithLang()

Type: function

Random yes words, with a suffix of what language it's in.

Так - that's in Belarusian

.noRandomWithLang()

Type: function

Random no words, with a suffix of what language it's in.

dili - that's in Cebuano

.allRandom()

Type: function

Random yes or no words.

CLI

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

  Examples
    $ yes-no
    Éwè

    $ yes-no --all --type yes
    Zee
    हाँ
    
    $ yes-no --type no --which
    neen - that's in Luxembourgish
    ...

  Options
    --all   Get all words instead of a random word
    --type  Type of word: yes|no|all  Default: all
    --which Include the language of the word

Related

License

MIT © NewAlexandria

Packages

No packages published

Languages

  • JavaScript 100.0%