Get superhero names
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.npmrc
.travis.yml
index.js
license
package.json
readme.md
superheroes.json
test.js

readme.md

superheroes Build Status

Get superhero names

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

Install

$ npm install superheroes

Usage

const superheroes = require('superheroes');

superheroes.random();
//=> 'Spider-Ham'

API

.all

Type: Array

Superhero names in alphabetical order.

.random()

Type: Function

Random superhero name.

Related

License

MIT © Sindre Sorhus