# rqg

> Random quote generator

Latest version **1.0.1** (published 2020-09-29) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-09-29 |
| First published | 2020-09-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 35 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | David Joseph Thomas |
| Maintainers | acuityx |
| Keywords | quotes |

## Links

- npm: https://www.npmjs.com/package/rqg
- Repository: https://github.com/davidjt7/rqg
- Homepage: https://github.com/davidjt7/rqg#readme
- Issues: https://github.com/davidjt7/rqg/issues
- npm.io page: https://npm.io/package/rqg

## Dependencies (1)

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

## Recent versions

- 1.0.1 (latest) — 2020-09-29
- 1.0.0 — 2020-09-29

## README

# random-quotes

Get random quotes.

## Installation

```bash
$ npm install --save rqg
```

## Usage

CommonJS:

```js
const randomQuotes = require('rqg');
```

```js
randomQuotes();
//  {
//    body: 'It\'s not poisonous...',
//    author: 'Famous Last Words'
//  }
```

## API

- **`randomQuotes([count=1])`**
  - `count`: _Number_, _Optional_: The number of random quotes to get.
  - Returns a random quote object with the following keys: `author`, `body`
  - When count is given, returns an array of random quotes.

- **`randomQuotes.byAuthor(author)`**
  - `author`: _String_. The name of the author.
  - Returns an array of quotes by the given author. Array will contain the string bodies of the quotes directly.

## License

MIT License

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