Get DuckDuckGo results in Node. https://npmjs.com/package/node-ddg
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
Bauke 04dfe00f79
Move to self-hosted Gitea, update dependencies, rename some files.
2 år sedan
source Move to self-hosted Gitea, update dependencies, rename some files. 2 år sedan
tests Move to self-hosted Gitea, update dependencies, rename some files. 2 år sedan
.gitignore chore: update dependencies and output to build/ 3 år sedan
LICENSE Move to self-hosted Gitea, update dependencies, rename some files. 2 år sedan
README.md Move to self-hosted Gitea, update dependencies, rename some files. 2 år sedan
package.json Move to self-hosted Gitea, update dependencies, rename some files. 2 år sedan
tsconfig.json Move to self-hosted Gitea, update dependencies, rename some files. 2 år sedan
yarn.lock Move to self-hosted Gitea, update dependencies, rename some files. 2 år sedan

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.