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.
async-bluebird
Advanced tools
A bluebird
promisified wrap of async
- async utitlities for node and the browser.
I made this because I felt like it's more productive than manually wrapping async
functions with Promises every time I want to use them.
npm i async-bluebird
// Promisified async & bluebird Promises
var {async, Promise} = require('async-bluebird');
// Just Promisified async
var async = require('async-bluebird');
See async
documentation at: https://caolan.github.io/async/
See Promise
documentation at: http://bluebirdjs.com/docs/api-reference.html
// With callback:
async.each([1,2,3], (item, callback) => {
// Callback on each item
}, (err) => {
if (err) {
// Handle error
} else {
// Success
}
})
// With Promise:
async.each([1,2,3], (item, callback) => {
// Callback on each item
}).then(() => {
// Success
}).catch((err) => {
// Handle error
});
Converting async
's utility functions into Promises allows us to easily integrate them with our promise-using code and promise-chains.
Why Promises?: http://bluebirdjs.com/docs/why-promises.html
Understand promises before you start using async/await: https://medium.com/@bluepnume/learn-about-promises-before-you-start-using-async-await-eb148164a9c8
FAQs
Promisified utilities for node and the browser
We found that async-bluebird 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.