🐶 Get popular dog names
Switch branches/tags
Clone or download
Permalink
Failed to load latest commit information.
.editorconfig init Jan 14, 2015
.gitattributes init Jan 14, 2015
.gitignore init Jan 14, 2015
.jshintrc init Jan 14, 2015
.travis.yml Update .travis.yml Feb 8, 2015
cli.js simplify cli help creation Jun 19, 2015
female-dog-names.json init Jan 14, 2015
index.js simplify Jan 22, 2015
kira.jpg init Jan 14, 2015
license init Jan 14, 2015
male-dog-names.json init Jan 14, 2015
package.json update tests for latest AVA version Jan 1, 2016
readme.md add related project to readme Jul 25, 2016
test.js upgrade to latest AVA Apr 7, 2016

readme.md

dog-names Build Status

Get popular dog names

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

Not accepting PRs for additional names.

Install

$ npm install --save dog-names

Usage

const dogNames = require('dog-names');

dogNames.femaleRandom();
//=> 'Lucy'

API

.female

Type: array

Top 100 female dog names sorted by popularity.

.male

Type: array

Top 100 male dog names sorted by popularity.

.all

Type: array

Top 200 dog names sorted by popularity.

.femaleRandom()

Type: function

Random female dog name.

.maleRandom()

Type: function

Random male dog name.

.allRandom()

Type: function

Random dog name.

CLI

$ npm install --global dog-names
$ dog-names --help

  Examples
    $ dog-names
    Lucy

    $ dog-names --all --type male
    Max
    Buddy
    ...

  Options
    --all   Get all names instead of a random name
    --type  Type of name: female|male|all  Default: all

Related

License

MIT © Sindre Sorhus