Home

Awesome

supervillains

<img src="https://cloud.githubusercontent.com/assets/170270/7563380/f0af1aee-f7dc-11e4-9b83-92fe18cf6bdd.png" width="182" height="282" align="right">

Get supervillain names

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

Install

npm install supervillains

Usage

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.

import {randomSupervillain} from 'supervillains';

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

Related