1.0.1 • Published 2 years ago
ddgimages-node v1.0.1
DDG-Images for Node
DuckDuckGo API Wrapper for images.
Note
This is a fork of Le-Val's DDGImages for Deno but adapted for Node.
Usage
const { search, SafetyLevels } = require("ddgimages-node")
// remember that await is only for async functions
const duck = await ddiamges.search('ducks')
const nsfw = await ddimages.search('hentai', ddimages.SafetyLevels.STRICT) // doesn't throws any NSFW result
console.log(duck[0]?.image, nsfw[0]?.image)