JSPM

pet-names

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12
  • Score
    100M100P100Q52733F
  • License MIT

Get popular pet names

Package Exports

  • pet-names

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pet-names) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

pet-names Build Status

Get popular pet names

The name list is just a JSON file and can be used wherever. Originally from cutepetname.com

pet name noun a name that is used instead of someone's usual first name to express fondness or familiarity.

Not accepting PRs for additional names.

Install

$ npm install --save pet-names

Usage

const petNames = require('pet-names');

petNames.random();
//=> 'Snuggle Bunny'

API

.all

Type: array

~400 pet names in alphabetical order.

.random()

Type: function

Random pet name.

CLI

$ npm install --global pet-names
$ pet-names --help

  Examples
    $ pet-names
    Pumpkin

    $ pet-names --all
    Adorable
    Alliebear
    ...

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

License

MIT © Federico Brigante