8000 GitHub - sindresorhus/superheroes: Get superhero names
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sindresorhus/superheroes

Repository files navigation

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

About

Get superhero names

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0