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.
AsyncBox is a library for your main application
object, it supports Sync and Async APIs
App object provides own API plus evented EventEmitter
API
Usage:
var AsyncBox = require('async-box');
var app = new AsyncBox();
app.respondAsync('some-request-name', function(requestData) {
// response can be any plain JavaScript value or object or ...
return 'response-text';
});
app.respondAsync('async-promise-request', function(requestData) {
// ... or Promise
return new Promise(function(resolve, reject) {
resolve('response-promise');
});
});
app.requestAsync('some-request-name').then(function(response) {
console.log(response); // -> response-text
});
app.requestAsync('async-promise-request').then(function(response) {
console.log(response); // -> response-promise
});
TODO: Batch API example
TODO: Sync API example
FAQs
Your main application object with promise async api API
We found that async-box 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.