superb-es
Version:
Get superb (spanish) like words
116 lines (77 loc) • 2.79 kB
Markdown
# superb-es
<p align="center">
<br>
<img src="https://i.imgur.com/br0QoZx.png" alt="superb-es">
<br>
</p>

[](https://travis-ci.org/Kikobeats/superb-es)
[](https://coveralls.io/github/Kikobeats/superb-es)
[](https://david-dm.org/Kikobeats/superb-es)
[](https://david-dm.org/Kikobeats/superb-es#info=devDependencies)
[](https://www.npmjs.org/package/superb-es)
[](https://paypal.me/Kikobeats)
> Get superb (spanish) like words.
## Install
```bash
$ npm install superb-es --global
```
## Usage
```js
const superb = require('superb-es')
superb()
// => 'máquina'
superb()
// => 'fiera'
superb({ plural: true })
// => 'cracks'
superb.words()
// => ['máquina', 'fiera', …]
superb.words({ plural: true })
// => ['máquinas', 'fieras', …]
```
## CLI
```bash
$ superb-es --help
Examples
$ superb-es
máquina
$ superb-es --all
crack
fiera
…
$ superb-es --all --plural
cracks
fieras
…
Options
--capitalize Capitalize the first letter of the word.
--all Get all the words instead of a random word.
--female Get a female random word.
--plural Get all the plurals words.
--prefix Add a prefix adverb before your superb word.
```
## API
### superb([options])
Get a singular random [superb like word](words.json).
#### options
##### capitalize
type: `boolean`</br>
default: `false`
Capitalize the first letter of the word.
##### female
type: `boolean`</br>
default: `false`
Get a female random word.
##### plural
type: `boolean`</br>
default: `false`
Get a plural random word.
### superb.words([options])
type: `array`
Get all the singular words.
It can receive the same options than `superb`.
## License
**superb-es** © [Kiko Beats](https://kikobeats.com), Released under the [MIT](https://github.com/Kikobeats/superb-es/blob/master/LICENSE.md) License.<br>
Authored and maintained by Kiko Beats with help from [contributors](https://github.com/Kikobeats/superb-es/contributors).
> [kikobeats.com](https://kikobeats.com) · GitHub [@Kiko Beats](https://github.com/Kikobeats) · Twitter [@Kikobeats](https://twitter.com/Kikobeats)