Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sindresorhus/cat-names

:cat2: Get popular cat names
https://github.com/sindresorhus/cat-names

cat cli cli-app list names nodejs random

Last synced: 4 days ago
JSON representation

:cat2: Get popular cat names

Awesome Lists containing this project

README

        

# cat-names

> Get popular cat names

![](dofle.jpg)

The name list is just a [JSON file](cat-names.json) and can be used anywhere.

*I'm not accepting PRs for additional names.*

## Install

```sh
npm install cat-names
```

## Usage

```js
import {catNames, randomCatName} from 'cat-names';

catNames;
//=> ['Abby', 'Angel', …]

randomCatName();
//=> 'Max'
```

## API

### catNames

Type: `string[]`

Top 100 cat names in alphabetical order.

### randomCatName()

Type: `Function`

Get a random cat name.

## CLI

```sh
npm install --global cat-names
```

```
$ cat-names --help

Examples
$ cat-names
Max

$ cat-names --all
Abby
Angel

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

## Related

- [dog-names](https://github.com/sindresorhus/dog-names) - Get popular dog names
- [pokemon](https://github.com/sindresorhus/pokemon) - Get Pokémon names
- [superb](https://github.com/sindresorhus/superb) - Get superb like words
- [superheroes](https://github.com/sindresorhus/superheroes) - Get superhero names
- [supervillains](https://github.com/sindresorhus/supervillains) - Get supervillain names
- [random-tree-names](https://github.com/pguth/random-tree-names) - Get tree names
- [yes-no-words](https://github.com/sindresorhus/yes-no-words) - Get yes/no like words