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

https://github.com/murshidazher/snake-names

🐍 Get popular snake names
https://github.com/murshidazher/snake-names

array names npm npm-package random random-names snake

Last synced: about 2 months ago
JSON representation

🐍 Get popular snake names

Awesome Lists containing this project

README

        

# [snake-names](https://github.com/murshidazher/snake-names) [![npm](https://img.shields.io/npm/v/snake-names.svg?label=&color=0080FF)](https://github.com/murshidazher/snake-names/releases/latest)

[![travisci](https://img.shields.io/travis/com/murshidazher/snake-names/master?style=flat-square)](https://travis-ci.com/)
[![codecov](https://img.shields.io/codecov/c/gh/murshidazher/snake-names/master?logo=codecov&style=flat-square&token=L8FWILY45J)](https://codecov.io/gh/murshidazher/snake-names)
![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)

> Get popular snake names. Certified Lit 🔥🔥 **Accepting PRs for additional names.**

- An npm package to return a list of popular snake names.

## Table of Contents

- [Table of Contents](#table-of-contents)
- [Installing / Getting started](#installing--getting-started)
- [Usage](#usage)
- [CLI](#cli)
- [API](#api)
- [Contributors](#contributors)
- [License](#license)

## Installing / Getting started

A quick introduction of the minimal setup you need to get a up & running.

```shell
$ npm install snake-names
```

OR

```shell
$ yarn add snake-names
```

## Usage

Here's a brief intro about what a developer must do in order to start developing the project further:

**ES5**:

```js
const snakeNames = require('snake-names');

snakeNames.random();
//=> 'Albert'
```

**React or ES6**:

```js
import snakeNames from "snake-names";

snakeNames.random();
//=> 'Albert'
```

## CLI

```shell
$ npm install --global snake-names
```

OR

```shell
$ yarn global add snake-names
```

```shell
$ snake-names --help

Get popular snake names

Usage
$ snake-names

Options
--all Get all the names instead of a random name
--type Type of name [Default: all] [Values: female, male, all]

Examples
$ snake-names
Albert
$ snake-names --all --type male
Adrian
Igor

```

## API

| Method | Type | Description |
| :----------: | :----------: | --------------------------------------------------------------------------------------------------------------------- |
| `.all` | array | List all popular snake names |
| `.male` | array | List all popular male snake names |
| `.female` | array | List all popular female snake names |
| `.cute` | array | List all cute snake names |
| `.unique` | array | List all unique snake names |
| `.famous` | array | List all famous snake names |
| `.random(n)` | string/array | returns a random snake name if no param is provided. Otherwise, returns an array of random snake names of length `n`. |

## Contributors

[![contributors](https://contrib.rocks/image?repo=murshidazher/snake-names)](https://github.com/murshidazher/snake-names/graphs/contributors)

## License

[MIT](https://github.com/murshidazher/snake-names/blob/master/LICENSE) © Murshid Azher.