# duck-it

> DuckDuckGo client for javascript/typescript

Latest version **1.0.10** (published 2021-05-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install duck-it
pnpm add duck-it
yarn add duck-it
bun add duck-it
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.10 |
| Published | 2021-05-19 |
| First published | 2019-06-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 12 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | franckldx |
| Keywords | node, react, browser, typescript, javascript, duckduckgo |

## Links

- npm: https://www.npmjs.com/package/duck-it
- Repository: https://github.com/franckLdx/duck-it
- Homepage: https://github.com/franckLdx/duck-it/blob/master/README.md
- Issues: https://github.com/franckLdx/duck-it/issues
- npm.io page: https://npm.io/package/duck-it

## Dependencies (7)

- [axios](https://npm.io/package/axios.md) 0.21.1
- [mocha](https://npm.io/package/mocha.md) 8.4.0
- [react](https://npm.io/package/react.md) 17.0.2
- [react-dom](https://npm.io/package/react-dom.md) 17.0.2
- [typescript](https://npm.io/package/typescript.md) 4.2.4
- [@types/chai](https://npm.io/package/@types/chai.md) 4.2.18
- [react-scripts](https://npm.io/package/react-scripts.md) 4.0.3

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.10 (latest) — 2021-05-19
- 1.0.9 — 2021-03-26
- 1.0.8 — 2021-03-26
- 1.0.7 — 2020-12-17
- 1.0.6 — 2020-07-18
- 1.0.5 — 2020-03-16
- 1.0.4 — 2019-12-22
- 1.0.3 — 2019-10-07
- 1.0.2 — 2019-10-02
- 1.0.1 — 2019-08-01
- 1.0.0 — 2019-06-21

## README

# duck-it
A duck duck go client for javascript/typescript

## Examples
```javascript
async function get() {
  const result = await duckIt('bart simpsons');
  console.log(result.data.AbstractText);
}
```

* duckIt uses [axios](https://github.com/axios/axios) as peer dependencies and return an AxiosResponse:
```javascript
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](https://api.duckduckgo.com/api)

---
_Source: https://npm.io/package/duck-it · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
