Get DuckDuckGo results in Node. https://npmjs.com/package/node-ddg
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
Bauke 04dfe00f79
Move to self-hosted Gitea, update dependencies, rename some files.
1年前
source Move to self-hosted Gitea, update dependencies, rename some files. 1年前
tests Move to self-hosted Gitea, update dependencies, rename some files. 1年前
.gitignore chore: update dependencies and output to build/ 2年前
LICENSE Move to self-hosted Gitea, update dependencies, rename some files. 1年前
README.md Move to self-hosted Gitea, update dependencies, rename some files. 1年前
package.json Move to self-hosted Gitea, update dependencies, rename some files. 1年前
tsconfig.json Move to self-hosted Gitea, update dependencies, rename some files. 1年前
yarn.lock Move to self-hosted Gitea, update dependencies, rename some files. 1年前

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.