Need help with superheroes?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

sindresorhus
214 Stars 21 Forks MIT License 13 Commits 0 Opened issues

Description

Get superhero names

Services available

!
?

Need anything else?

Contributors list

# 221
exec
test-fr...
nextjs
messeng...
11 commits
# 5,605
TypeScr...
typescr...
iterm2
exec
1 commit
# 6,604
chalk
exec
vuejs2
sketch-...
1 commit

superheroes

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.