superheroes
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

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

Package Sidebar

Install

npm i superheroes

Weekly Downloads

1,031

Version

3.0.0

License

MIT

Unpacked Size

29 kB

Total Files

6

Last publish

Collaborators

  • sindresorhus