Wondering what’s next for npm?Check out our public roadmap! »

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

    2.0.0 • Public • Published

    dog-names Build Status

    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
        …
    

    Related

    License

    MIT © Sindre Sorhus

    Install

    npm i dog-names

    DownloadsWeekly Downloads

    3,084

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    8.46 kB

    Total Files

    8

    Last publish

    Collaborators

    • avatar