Pulls images from reddit and danbooru (more will be added in the future)
Originally made for a discord bot
Installation
npm install nsfw-images
How to use
constNsfw=require("nsfw-images");constKazeClient=newNsfw.Client();// getting real imagesKazeClient.nsfw.real.ass().then(json=>{console.log(json);// outputs data with image url, possible source and other stuff}).catch(error=>{console.log(error);// outputs error});// getting hentai imagesKazeClient.nsfw.hentai.ass().then(json=>{console.log(json);// outputs data with image url, possible source and other stuff}).catch(error=>{console.log(error);// outputs error});// custom requestKazeClient.custom.do("https://google.com/",/<meta.*?>/gm).then(matches=>{console.log(matches);// outputs an array of all matches}).catch(error=>{console.log(error);// outputs error});