npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

superheroes

4.0.0

@sindresorhus

npmHomeRepoSnykSocket
Downloads:595
$ npm install superheroes
DailyWeeklyMonthlyYearly

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-cli - CLI for this module
  • supervillains - Get supervillain names
  • cat-names - Get popular cat names
  • dog-names - Get popular dog names
  • pokemon - Get Pokémon names
  • superb - Get superb like words
  • yes-no-words - Get yes/no like words