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
206 Stars 21 Forks MIT License 13 Commits 0 Opened issues

Description

Get superhero names

Services available

!
?

Need anything else?

Contributors list

# 80
Shell
exec
test-fr...
nextjs
11 commits
# 7,406
TypeScr...
iterm2
Node.js
exec
1 commit
# 6,862
chalk
iterm2
exec
Electro...
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.