@yuu0007/random.api

0.0.8 • Public • Published

random.api

Installation

npm i @yuu0007/random.api

Example

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:
{
	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
}

Readme

Keywords

Package Sidebar

Install

npm i @yuu0007/random.api

Weekly Downloads

1

Version

0.0.8

License

Apache-2.0

Unpacked Size

1.89 kB

Total Files

4

Last publish

Collaborators

  • yuu0007