1.1.2 • Published 7 years ago

the-big-bang-theory v1.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

the-big-bang-theory Build Status

Fetch random name of character in The Big Bang Theory

the-big-bang-theory

Photo credit : The Big Bang Theory Wiki

This project highly learned from sindresorhus/superb.

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

Installation

$ npm i --save the-big-bang-theory

Usage

var theBigBangTheory = require('the-big-bang-theory');  // Conventional but classic way
import theBigBangTheory from 'the-big-bang-theory';     // Or much more modern ES6  way

theBigBangTheory();
// Leonard

theBigBangTheory();
// Sheldon

theBigBangTheory.words;
// ['Leonard', 'Sheldon', ...]

API

theBigBangTheory()

Type: string

Generate random character's name in The Big Bang Theory.

theBigBangTheory.names

Type: array

Fetch all of the names.

CLI

$ npm i the-big-bang-theory -g
$ npm the-big-bang-theory --help
  
  Get random name of The Big Bang Theory

  Examples
    $ the-big-bang-theory
    Leonard

    $ the-big-bang-theory --all
    Leonard
    Sheldon
    Penny
    ...

  Options
    --all  Fetch all the names rather than a random name

License

MIT © WeiChiaChang