
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
ts-duckduckgo-search
Advanced tools
TypeScript wrapper for scraping DuckDuckGo results from the lite HTML endpoint.
npm install
npm run build
import { searchDuckDuckGo } from 'ts-duckduckgo-search';
const results = await searchDuckDuckGo('privacy focused search');
console.log(results);
/*
[
{
title: 'DuckDuckGo — Privacy, simplified.',
url: 'https://duckduckgo.com/',
description: 'DuckDuckGo is an internet search engine...'
},
...
]
*/
await searchDuckDuckGo('typescript', {
maxResults: 20,
locale: 'us-en',
safeSearch: 'strict',
});
maxResults – Maximum number of results to return (default 10).locale – Locale string passed as the kl parameter (us-en, pt-pt, etc.).safeSearch – Safe-search level (off, moderate, strict).offset – Result offset in multiples of 50, passed as the s parameter.userAgent – Custom user-agent header.signal – AbortSignal used to cancel the underlying fetch.npm test
FAQs
DuckDuckGo search scraper with TypeScript API
We found that ts-duckduckgo-search demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.