Skip to content

hellixum/superheroes

 
 

Repository files navigation

superheroes Build Status

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

About

Get superhero names

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 71.4%
  • TypeScript 28.6%