the-big-bang-theory
v1.1.2
Published
Fetch random name of character in The Big Bang Theory
Downloads
1
Maintainers
Readme
the-big-bang-theory
Fetch random name of character in 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