Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
A very simple wrapper for the DuckDuckGo API (http://duckduckgo.com/api.html). Just simplifies an edge case error check and presents a simple way to set & reuse options.
Usage:
var ddg = require('ddg-api');
var client = new ddg.SearchClient({useSSL: true});
client.search("Apple Inc.", function(error, response, data) {
if (!error && response.statusCode == 200)
{
console.log(data.Abstract);
} else {
console.log("ERROR! " + error + "/" + response.statusCode);
}
});
/*
* output format (json or XML - defaults to json)
* Required
*/
format: "json"
/*
* pretty print json output
*/
, prettyJson: false
/*
* use SSL
* defaults to false
*/
, useSSL: false
/*
* Set strict SSL mode
*/
, strictSSL: false
/*
* Base URL for API, includes the question mark
*/
, baseUrl: "http://api.duckduckgo.com/?"
/*
* SSL Base URL for API, includes the question mark
*/
, sslBaseUrl: "https://api.duckduckgo.com/?"
/*
* Skip redirect for bang commands (defaults to true because
* it doesn't make sense for an API client like this to redirect -
* not really sure it should be an option)
*/
, noRedirect: true
/*
* Remove HTML from text
* defaults to false
*/
, noHtml: false
/*
* Skip Disambiguation records in the response
* Defaults to false
*/
, skipDisambig: false
/*
* User Agent
*
*/
, userAgent: "DDG Search Client for Node.js ("+SearchClient.version+")"
Provided under the The MIT License (MIT) Copyright (c) 2011 Sujal Shah
See LICENSE for details
FAQs
A library for the DuckDuckGo APIs
The npm package ddg-api receives a total of 0 weekly downloads. As such, ddg-api popularity was classified as not popular.
We found that ddg-api demonstrated a not healthy version release cadence and project activity because the last version was released 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.