Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sindresorhus/superb

Get superb like words
https://github.com/sindresorhus/superb

Last synced: 5 days ago
JSON representation

Get superb like words

Awesome Lists containing this project

README

        

# superb

> Get superb like words

Currently ~100 words. **I'm not accepting more words.**

The word list itself is just a [JSON file](superb-words.json) and can be used anywhere.

## Install

```sh
npm install superb
```

## Usage

```js
import superbWords from 'superb';

superbWords;
//=> ['ace', 'amazing', …]
```

## API

### superbWords

Type: `string[]`

All the words in alphabetical order.

### randomSuperbWord()

Type: `Function`

Get a random word.

```js
import {randomSuperbWord} from 'superb';

randomSuperbWord();
//=> 'legendary'

randomSuperbWord();
//=> 'awesome'
```

## Related

- [superb-cli](https://github.com/sindresorhus/superb-cli) - CLI for this module
- [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
- [superheroes](https://github.com/sindresorhus/superheroes) - Get superhero names
- [supervillains](https://github.com/sindresorhus/supervillains) - Get supervillain names
- [yes-no-words](https://github.com/sindresorhus/yes-no-words) - Get yes/no like words