Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/dog-names
:dog: Get popular dog names
https://github.com/sindresorhus/dog-names
Last synced: 2 months ago
JSON representation
:dog: Get popular dog names
- Host: GitHub
- URL: https://github.com/sindresorhus/dog-names
- Owner: sindresorhus
- License: mit
- Created: 2015-01-14T16:20:43.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2024-02-04T00:57:32.000Z (10 months ago)
- Last Synced: 2024-04-13T17:58:06.308Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 91.8 KB
- Stars: 125
- Watchers: 9
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-nodejs-cn - dog-names - 获取流行的狗名字 (包 / 怪诞的)
- awesome-nodejs-cn - dog-names - **star:124** 给狗取个流行的名字 (包 / 奇怪的)
- awesome-nodejs - dog-names - Get popular dog names. (Packages / Weird)
- awesome-nodejs - dog-names - Get popular dog names - ★ 88 (Weird)
- awesome-node - dog-names - Get popular dog names. (Packages / Weird)
README
# dog-names
> Get popular dog names
![](kira.jpg)
The name lists are just JSON files and can be used anywhere.
*I'm not accepting PRs for additional names.*
## Install
```sh
npm install dog-names
```## Usage
```js
import {randomFemaleDogName} from 'dog-names';randomFemaleDogName();
//=> 'Lucy'
```## API
### dogNames
Type: `string[]`
Top 200 dog names sorted by popularity.
### femaleDogNames
Type: `string[]`
Top 100 female dog names sorted by popularity.
### maleDogNames
Type: `string[]`
Top 100 male dog names sorted by popularity.
### randomDogName()
Type: `Function`
Get a random dog name.
### randomFemaleDogName()
Type: `Function`
Get a random female dog name.
### randomMaleDogName()
Type: `Function`
Get a random male dog name.
## CLI
```sh
npm install --global dog-names
``````
$ dog-names --helpGet popular dog names
Usage
$ dog-namesOptions
--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
- [cat-names](https://github.com/sindresorhus/cat-names) - Get popular cat 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
- [yes-no-words](https://github.com/sindresorhus/yes-no-words) - Get yes/no like words