Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
get-promise
Advanced tools
HTTP(S) GET with promises. Handles redirects transparently, but notifies about them.
Treats all responses as UTF-8 encoded text.
var get = require('get-promise');
get(url, options).then(function (result) {
// options (optional argument) can be:
// {
// method: 'GET' by default
// }
// result is:
// {
// url: url,
// status: status code,
// headers: { … },
// rawHeaders: [{ name: …, value: … }, …]
// data: response body,
// options: options
// }
}, function (error) {
// error is either:
// - same as 'result' above for HTTP error
// - an exception for other errors
}, function (notice) {
// notice is either:
// {
// url: url,
// status: status code,
// headers: { … }
// options: options,
// }
// or in case of redirect:
// {
// url: url,
// redirect: headers.location,
// status: status code,
// headers: { … },
// options: options
// }
});
MIT
FAQs
HTTP(S) GET with promises, supports redirects
The npm package get-promise receives a total of 2,932 weekly downloads. As such, get-promise popularity was classified as popular.
We found that get-promise 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.