# superheroes

> Get superhero names

Latest version **4.0.0** (published 2024-04-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install superheroes
pnpm add superheroes
yarn add superheroes
bun add superheroes
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2024-04-30 |
| First published | 2015-05-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=18.20 |
| Dependencies | 1 |
| Unpacked size | 28.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 233 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | word, words, list, array, random, superheroes, superhero, heroes, hero, marvel, dc, comics |

## Links

- npm: https://www.npmjs.com/package/superheroes
- Repository: https://github.com/sindresorhus/superheroes
- Homepage: https://github.com/sindresorhus/superheroes#readme
- Issues: https://github.com/sindresorhus/superheroes/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/superheroes

## Dependencies (1)

- [unique-random-array](https://npm.io/package/unique-random-array.md) ^3.0.0

## Alternatives

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) — 2.2M weekly downloads
- [roboto-fontface](https://npm.io/package/roboto-fontface.md) — 196.0K weekly downloads
- [@react-native-vector-icons/common](https://npm.io/package/@react-native-vector-icons/common.md) — 150.4K weekly downloads
- [stockfish](https://npm.io/package/stockfish.md) — 27.0K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads

## Recent versions

- 4.0.0 (latest) — 2024-04-30
- 3.0.0 — 2019-05-03
- 2.0.0 — 2018-07-14
- 1.0.0 — 2015-05-11

## README

# superheroes

> Get superhero names

<img src="https://cloud.githubusercontent.com/assets/170270/7563453/ad57a684-f7dd-11e4-8302-081f132e8653.png" width="100" height="112" align="right">

The list is just a [JSON file](superheroes.json) and can be used anywhere.

**I'm not accepting additional entries to the list.**

## Install

```sh
npm install superheroes
```

## Usage

```js
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.

```js
import {randomSuperhero} from 'superheroes';

randomSuperhero();
//=> 'Spider-Ham'
```

## Related

- [superheroes-cli](https://github.com/sindresorhus/superheroes-cli) - CLI for this module
- [supervillains](https://github.com/sindresorhus/supervillains) - Get supervillain names
- [cat-names](https://github.com/sindresorhus/cat-names) - Get popular cat names
- [dog-names](https://github.com/sindresorhus/dog-names) - Get popular dog names
- [pokemon](https://github.com/sindresorhus/pokemon) - Get Pokémon names
- [superb](https://github.com/sindresorhus/superb) - Get superb like words
- [yes-no-words](https://github.com/sindresorhus/yes-no-words) - Get yes/no like words

---
_Source: https://npm.io/package/superheroes · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
