UNPKG

firefly-names

Version:
33 lines (21 loc) 1.06 kB
# firefly-names [![travis build](https://img.shields.io/travis/codemonkeybot/firefly-names.svg?style=flat-square)](https://travis-ci.org/codemonkeybot/firefly-names) [![version](https://img.shields.io/npm/v/firefly-names.svg?style=flat-square)](http://npm.im/firefly-names) [![downloads](https://img.shields.io/npm/dm/firefly-names.svg?style=flat-square)](http://npm-stat.com/charts.html?package=firefly-names&from=2015-08-01) [![MIT License](https://img.shields.io/npm/l/firefly-names.svg?style=flat-square)](http://opensource.org/licenses/MIT) Get random character names from the Firefly series. ## Installation This package is distributed via npm: ``` npm install firefly-names ``` ## Usage ```javascript var names = require('firefly-names'); var allNames = names.all; var randomName = names.random(); var threeRandomNames = names.random(3); ``` ## Other This library was inspired by a tutorial by [Kent C. Dodds](https://twitter.com/kentcdodds) as part of an [egghead.io](http://egghead.io/) series called "How to Write a JavaScript Library."