1.0.10 • Published 3 years ago

duck-it v1.0.10

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

duck-it

A duck duck go client for javascript/typescript

Examples

async function get() {
  const result = await duckIt('bart simpsons');
  console.log(result.data.AbstractText);
}
  • duckIt uses axios as peer dependencies and return an AxiosResponse:
const result = await duckIt('bart simpsons');
  • duckIt can be called with an options object, eahc item is optional:
    • appName: an application name, default duck-it
    • format: received format data, possible values: 'json' or 'xml', default 'json'
    • parentalFilter: parental filter activated or not, possible values 'Activated', 'Moderate' and 'Deactivated', default: 'Activated'
    • noRedirect: boolean, true to skip HTTP redirects
    • noHtml: boolean, true to remove HTML from text
    • skipDisambig: boolean, true to skip disambiguation (for information about this options see Duck Duck GO API documentation
1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago