3.1.0 • Published 1 year ago

doggie-names v3.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

dog-names

Get popular dog names

npm.io

The name list is just a JSON file 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.all;
//=> ["Akbash Dog",  "Akita", …]
       

dogNames.random();
//=> 'Armant'

API

.all

Type: string[]

Top 100 dog names in alphabetical order.

.random()

Type: Function

Random dog name.

CLI

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

  Examples
    $ dog-names
    Armant

    $ dog-names --all
    Akbash Dog
    Akita   
    …

  Options
    --all  Get all names instead of a random name

Related