the-big-bang-theory

1.1.2 • Public • Published

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

Package Sidebar

Install

npm i the-big-bang-theory

Weekly Downloads

1

Version

1.1.2

License

MIT

Last publish

Collaborators

  • weichiachang