Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sindresorhus/supervillains

Get supervillain names
https://github.com/sindresorhus/supervillains

Last synced: about 12 hours ago
JSON representation

Get supervillain names

Awesome Lists containing this project

README

        

# supervillains

> Get supervillain names

The list is just a [JSON file](supervillains.json) and can be used anywhere.

## Install

```sh
npm install supervillains
```

## Usage

```js
import supervillains from 'supervillains';

supervillains;
//=> ['Abattoir', 'Able Crown', …]
```

## API

### supervillains

Type: `string[]`

Supervillain names in alphabetical order.

### randomSupervillain()

Type: `Function`

Get a random supervillain name.

```js
import {randomSupervillain} from 'supervillains';

randomSupervillain();
//=> 'Mud Pack'
```

## Related

- [supervillains-cli](https://github.com/sindresorhus/supervillains-cli) - CLI for this module
- [superheroes](https://github.com/sindresorhus/superheroes) - Get superhero names
- [cat-names](https://github.com/sindresorhus/cat-names) - Get popular cat names
- [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
- [yes-no-words](https://github.com/sindresorhus/yes-no-words) - Get yes/no like words