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.
A simple news API. Use at your own risk.
The stuft module exposes one function that handles network requests and parsing. It returns a Promise, meaning you can also use the async/await syntax.
You can call the stuft
function with several options. You can mix these options except when id
is present, then limit
and section
have no effect. Find out what fetchOptions
you can pass in here: https://github.github.io/fetch/#options.
import stuft from "stuft";
// Using async/await
(async () => {
// get the first 5 articles
const articles = await stuft();
for (const article of articles) {
console.log(article.id, article.title);
}
})();
import stuft, { Section } from "stuft";
// Using Promises:
(() => {
// get the first 5 articles from the business section
stuft({ section: Section.Business })
.then((articles) => {
for (const article of articles) {
console.log(article.id, article.title);
}
})
.catch((err) => {
console.error(err);
});
})();
const stuft = require("stuft").default; // commonjs
// Using async/await
(async () => {
// get the first 20 articles
const articles = await stuft({ limit: 20 });
for (const article of articles) {
console.log(article.id, article.title);
}
})();
import stuft from "stuft";
// Using async/await
(async () => {
// get a specific article
const articles = await stuft({ id: 109912957 });
const article = articles[0];
console.log(article.id, article.title);
})();
FAQs
A news api.
The npm package stuft receives a total of 0 weekly downloads. As such, stuft popularity was classified as not popular.
We found that stuft 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.