0.0.8 • Published 4 years ago

@yuu0007/random.api v0.0.8

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
4 years ago

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
}
0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago