# @yuu0007/random.api

> Random Api!

Latest version **0.0.8** (published 2020-10-25) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @yuu0007/random.api
pnpm add @yuu0007/random.api
yarn add @yuu0007/random.api
bun add @yuu0007/random.api
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2020-10-25 |
| First published | 2020-10-24 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | yuu |
| Maintainers | yuu0007 |
| Keywords | random, api, randomapi |

## Links

- npm: https://www.npmjs.com/package/@yuu0007/random.api
- Repository: https://github.com/yuu0007/random.api
- Homepage: https://github.com/yuu0007/random.api#readme
- Issues: https://github.com/yuu0007/random.api/issues
- npm.io page: https://npm.io/package/@yuu0007/random.api

## Dependencies (1)

- [node-superfetch](https://npm.io/package/node-superfetch.md) ^0.1.10

## Recent versions

- 0.0.8 (latest) — 2020-10-25
- 0.0.7 — 2020-10-24
- 0.0.6 — 2020-10-24
- 0.0.5 — 2020-10-24
- 0.0.4 — 2020-10-24
- 0.0.3 — 2020-10-24
- 0.0.2 — 2020-10-24
- 0.0.1 — 2020-10-24

## README

# random.api

# Installation
`npm i @yuu0007/random.api`

## Example
```js
const { Random } = require('@yuu0007/random.api');
const random = new Random();

async function meme() {
	const content = await random.getMeme();
	return console.log(content);
	/*
	* This returns an object:
	* {
	*	postLink: "https://redd.it/jgymyb",
	*	subreddit: "dankmemes",
	*	title: "And I’m a teacher lol",
	*	url: "https://i.redd.it/bgt6td6wlxu51.jpg",
	*	nsfw: false,
	*	spoiler: false,
	*	author: "Walrus909",
	*	upvotes: 14257
	* }
	*
	*/
}
```

## Available Endpoints
- getMeme()
This returns an object:
```js
{
	postLink: "https://redd.it/jgymyb",
	subreddit: "dankmemes",
	title: "And I’m a teacher lol",
	url: "https://i.redd.it/bgt6td6wlxu51.jpg",
	nsfw: false,
	spoiler: false,
	author: "Walrus909",
	upvotes: 14257
}
```

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