ddgimages-node
v1.0.1
Published
Duckduckgo images wrapper for Node
Downloads
15
Readme
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)