Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sindresorhus/cat-names
- Owner: sindresorhus
- License: mit
- Created: 2015-01-14T16:17:19.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2024-04-30T10:52:20.000Z (8 months ago)
- Last Synced: 2024-12-04T07:31:59.807Z (9 days ago)
- Topics: cat, cli, cli-app, list, names, nodejs, random
- Language: JavaScript
- Homepage:
- Size: 174 KB
- Stars: 272
- Watchers: 12
- Forks: 36
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-nodejs-cn - cat-names - 获取流行的猫名字 (包 / 怪诞的)
- awesome-nodejs-cn - cat-names - **star:272** 给猫取个流行的名字 (包 / 奇怪的)
- awesome-nodejs - cat-names - Get popular cat names. (Packages / Weird)
- awesome-nodejs - cat-names - Get popular cat names - ★ 198 (Weird)
- awesome-node - cat-names - Get popular cat names. (Packages / Weird)
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 --helpExamples
$ 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