superheroes

by sindresorhus

sindresorhus / superheroes

Get superhero names

203 Stars 18 Forks Last release: over 1 year ago (v3.0.0) MIT License 12 Commits 3 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

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.all; //=> ['3-D Man', 'A-Bomb', …]

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

API

.all

Type:

string[]

Superhero names in alphabetical order.

.random()

Type:

Function

Random superhero name.

Related

License

MIT © Sindre Sorhus

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.