All Projects → sindresorhus → Superheroes

sindresorhus / Superheroes

Licence: mit
Get superhero names

Programming Languages

javascript
184084 projects - #8 most used programming language

superheroes

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].