k
k
ksoft.js
Search…
Images
Random hand-picked images, random memes from reddit and other reddit parsers.

Get a random Image from a Tag

1
ksoft.images.random(tag, options);
Copied!
Usage
Example
Parameter
Type
tag
String
options.nsfw
Boolean
Success: Returns Image
Not found: Throws error if tag doesn't exist.
1
ksoft.images.random('birb', { nsfw: false });
Copied!

Get Tags

1
ksoft.images.tags();
Copied!
Usage
Success: Returns Array of Tags

Get Image by ID

1
ksoft.images.image(id);
Copied!
Usage
Example
Parameter
Type
id
String
Success: Returns Image
Not found: Throws error if image by that id doesn't exist.
1
ksoft.images.image('i-hcz0h5bg-33');
Copied!

Get a random Meme

1
ksoft.images.meme();
Copied!
Usage
Success: Returns RedditImage

Get a random WikiHow Article

1
ksoft.images.wikihow();
Copied!
Usage
Success: Returns WikiHowImage

Get a cute picture

1
ksoft.images.aww();
Copied!
Usage
Success: Returns RedditImage

Get an NSFW picture

1
ksoft.images.nsfw();
Copied!
Usage
Success: Returns RedditImage

Get an image from a subreddit

1
ksoft.images.reddit(subreddit, options);
Copied!
Usage
Example
Parameter
Type
subreddit
String
options.span
String: "hour" | "day" | "week" | "month" | "year" | "all"
options.removeNSFW
Boolean
1
ksoft.images.reddit('dankmemes', { removeNSFW: true, span: 'week' });
Copied!
Last modified 1yr ago