MonkeDev / iduck

A simple way to use the duckduckgo API and search for images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iDuck

A NodeJS Wrapper to interfere with the DuckDuckGo Instant Answer API.

Example

const iDuck = require('iduck'),
duckduckgo = new iDuck('<t param>');
    duckduckgo.search('test', { no_html: true })
        .then(console.log)
        .catch(console.error);

Docs

// Example
iDuck#search(query: string, {})
    .then(res => console.log(res.Abstract))
    .catch(console.error);
// Options
{
    no_redirect: true | false,
    no_html: true | false,
    skip_disambig: true | false
}

About

A simple way to use the duckduckgo API and search for images

License:Apache License 2.0


Languages

Language:JavaScript 100.0%