Get DuckDuckGo results in Node. https://npmjs.com/package/node-ddg
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Bauke 04dfe00f79
Move to self-hosted Gitea, update dependencies, rename some files.
il y a 1 an
source Move to self-hosted Gitea, update dependencies, rename some files. il y a 1 an
tests Move to self-hosted Gitea, update dependencies, rename some files. il y a 1 an
.gitignore chore: update dependencies and output to build/ il y a 2 ans
LICENSE Move to self-hosted Gitea, update dependencies, rename some files. il y a 1 an
README.md Move to self-hosted Gitea, update dependencies, rename some files. il y a 1 an
package.json Move to self-hosted Gitea, update dependencies, rename some files. il y a 1 an
tsconfig.json Move to self-hosted Gitea, update dependencies, rename some files. il y a 1 an
yarn.lock Move to self-hosted Gitea, update dependencies, rename some files. il y a 1 an

README.md

Node DDG

Get DuckDuckGo results in Node.

npm version npm downloads per month npm license

Usage

import {search, Result} from 'node-ddg';

search({query: 'duckduckgo', maxResults: 3})
  .then((results: Result[]) => console.log(results))
  .catch(console.error);

For more examples, see the source and test files.

License

Open-sourced with the MIT License.