[go: up one dir, main page]

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

4.0.0 • Public • Published

superheroes

Get superhero names

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

I'm not accepting additional entries to the list.

Install

npm install superheroes

Usage

import superheroes from 'superheroes';

superheroes;
//=> ['3-D Man', 'A-Bomb', …]

API

superheroes

Type: string[]

Superhero names in alphabetical order.

randomSuperhero()

Type: Function

Get a random superhero name.

import {randomSuperhero} from 'superheroes';

randomSuperhero();
//=> 'Spider-Ham'

Related

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.0.0630latest

Version History

VersionDownloads (Last 7 Days)Published
4.0.0630
3.0.0256
2.0.030
1.0.071

Package Sidebar

Install

npm i superheroes

Weekly Downloads

987

Version

4.0.0

License

MIT

Unpacked Size

28.9 kB

Total Files

6

Last publish

Collaborators

  • sindresorhus