iduck

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

Usage no npm install needed!

<script type="module">
  import iduck from 'https://cdn.skypack.dev/iduck';
</script>

README

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);

Docs

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