Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/supervillains
Get supervillain names
https://github.com/sindresorhus/supervillains
Last synced: about 12 hours ago
JSON representation
Get supervillain names
- Host: GitHub
- URL: https://github.com/sindresorhus/supervillains
- Owner: sindresorhus
- License: mit
- Created: 2015-05-11T11:05:01.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2024-04-30T17:47:08.000Z (10 months ago)
- Last Synced: 2025-02-05T23:24:52.142Z (8 days ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 118
- Watchers: 7
- Forks: 20
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-nodejs-cn - supervillains - 获取超级大反派的名字 (包 / 怪诞的)
- awesome-nodejs - supervillains - Get supervillain names. (Packages / Weird)
- awesome-nodejs - supervillains - Get supervillain names - ★ 85 (Weird)
- awesome-node - supervillains - Get supervillain names. (Packages / Weird)
- awesome-nodejs-cn - supervillains - **star:118** 让信心满满的名字 (包 / 奇怪的)
README
# supervillains
> Get supervillain names
The list is just a [JSON file](supervillains.json) and can be used anywhere.
## Install
```sh
npm install supervillains
```## Usage
```js
import supervillains from 'supervillains';supervillains;
//=> ['Abattoir', 'Able Crown', …]
```## API
### supervillains
Type: `string[]`
Supervillain names in alphabetical order.
### randomSupervillain()
Type: `Function`
Get a random supervillain name.
```js
import {randomSupervillain} from 'supervillains';randomSupervillain();
//=> 'Mud Pack'
```## Related
- [supervillains-cli](https://github.com/sindresorhus/supervillains-cli) - CLI for this module
- [superheroes](https://github.com/sindresorhus/superheroes) - Get superhero 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