GithubHelp home page GithubHelp logo

sindresorhus / cat-names Goto Github PK

View Code? Open in Web Editor NEW
263.0 12.0 41.0 176 KB

:cat2: Get popular cat names

License: MIT License

JavaScript 83.79% TypeScript 16.21%
nodejs names cli cli-app cat random list

cat-names's Introduction

cat-names

Get popular cat names

The name list is just a JSON file and can be used anywhere.

I'm not accepting PRs for additional names.

Install

$ npm install cat-names

Usage

const catNames = require('cat-names');

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

catNames.random();
//=> 'Max'

API

.all

Type: string[]

Top 100 cat names in alphabetical order.

.random()

Type: Function

Random cat name.

CLI

$ 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

License

MIT © Sindre Sorhus

cat-names's People

Contributors

bendingbender avatar perguth avatar richienb avatar sindresorhus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cat-names's Issues

Optional random() argument

Hi!

I found the project very funny and interesting! But I would like to propose an improvement...

As a lover of cats, I might have in mind by which letter I want the name of my pet to start, even though I have no clue of the full name:

const catNames = require('cat-names');

catNames.random('W'); // > 'Whiskers'

PD: why no PR with new names? My 🐈 is called Schrödinger, I think it's an awesome name! 😄

Possibly-copyrighted names

I might use this in a project but I'm concerned about Garfield and others appearing there. Are you open to a PR to remove them?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.