Images

Random hand-picked images, random memes from reddit and other reddit parsers.

Get a random Image from a Tag

ksoft.images.random(tag, options);
Usage
Example
Usage

Parameter

Type

tag

String

options.nsfw

Boolean

Success: Returns Image

Not found: Throws error if tag doesn't exist.

Example
ksoft.images.random('birb', { nsfw: false });

Get Tags

ksoft.images.tags();
Usage
Usage

Success: Returns Array of Tags

Get Image by ID

ksoft.images.image(id);
Usage
Example
Usage

Parameter

Type

id

String

Success: Returns Image

Not found: Throws error if image by that id doesn't exist.

Example
ksoft.images.image('i-hcz0h5bg-33');

Get a random Meme

ksoft.images.meme();
Usage
Usage

Success: Returns RedditImage

Get a random WikiHow Article

ksoft.images.wikihow();
Usage
Usage

Success: Returns WikiHowImage

Get a cute picture

ksoft.images.aww();
Usage
Usage

Success: Returns RedditImage

Get an NSFW picture

ksoft.images.nsfw();
Usage
Usage

Success: Returns RedditImage

Get an image from a subreddit

ksoft.images.reddit(subreddit, options);
Usage
Example
Usage

Parameter

Type

subreddit

String

options.span

String: "hour" | "day" | "week" | "month" | "year" | "all"

options.removeNSFW

Boolean

Example
ksoft.images.reddit('dankmemes', { removeNSFW: true, span: 'week' });