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

/superheroes/

    Package Sidebar

    Install

    npm i superheroes

    Weekly Downloads

    1,373

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    28.9 kB

    Total Files

    6

    Last publish

    Collaborators

    • sindresorhus