1.0.11 • Published 6 years ago

megu-randbooru v1.0.11

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

Megu-Randbooru

I have created this module for ease of use in some of my projects, however you are free to use it! It has two modes, SFW and NSFW.

  • SFW grabs from safebooru, guaranteeing lack of NSFW content.
  • NSFW grabs from gelbooru, NSFW is there, but you must add the correct tags if you want it guaranteed.

Usage:

const randbooru = require('megu-randbooru');
const bg = new randbooru.BooruGrabber("sfw");//nsfw to use Gelbooru

bg.randomImage("megumin").then(data=>{
    console.log(data);
}).catch(err=>{
    console.log(err);
})

randomImage response:

{
    image_url: 'link_to_image',
    source_url: 'link_to_post'
}
1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago