Skip to content

sindresorhus/dog-names

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

dog-names

Get popular dog names

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

I'm not accepting PRs for additional names.

Install

$ npm install dog-names

Usage

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

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

API

.female

Type: string[]

Top 100 female dog names sorted by popularity.

.male

Type: string[]

Top 100 male dog names sorted by popularity.

.all

Type: string[]

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

  Get popular dog names

  Usage
    $ dog-names

  Options
    --all   Get all the names instead of a random name
    --type  Type of name  [Default: all]  [Values: female, male, all]

  Examples
    $ dog-names
    Lucy
    $ dog-names --all --type male
    Max
    Buddy
    …

License

MIT © Sindre Sorhus