dog-names
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

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

import {randomFemaleDogName} from 'dog-names';

randomFemaleDogName();
//=> 'Lucy'

API

dogNames

Type: string[]

Top 200 dog names sorted by popularity.

femaleDogNames

Type: string[]

Top 100 female dog names sorted by popularity.

maleDogNames

Type: string[]

Top 100 male dog names sorted by popularity.

randomDogName()

Type: Function

Get a random dog name.

randomFemaleDogName()

Type: Function

Get a random female dog name.

randomMaleDogName()

Type: Function

Get a random male 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
    …

Related

Package Sidebar

Install

npm i dog-names

Weekly Downloads

402

Version

3.0.0

License

MIT

Unpacked Size

8.28 kB

Total Files

8

Last publish

Collaborators

  • sindresorhus