Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Provides a series of helper functions that allow you to perform asynchronous iteration and flow control.
Node.js package. Provides a series of helper functions that allow you to perform asynchronous iteration and flow control.
npm install man
If you want to receive results of several callbacks at the same time, use callback()
method:
var fs = require('fs'),
man = require('man'),
cb = man.callback();
fs.readFile('file1.txt', cb.callback);
fs.readFile('file2.txt', cb.callback);
cb.on(function (err, content) {
// On each callback.
});
cb.done(function (result1, result2) {
// When all callbacks have received the results.
});
var man = require('man');
man.do(function () {
fs.readFile('file1.txt', this.next);
}).do(function (err, content) {
fs.readFile('file2.txt', this.next);
}).do(function (err, content) {
// ...
});
var man = require('man');
man.doAsync(function () {
// ...
this.done(result1);
}).do(function () {
// ...
this.done(result2);
}).then(function (result1, result2) {
// ...
});
var man = require('man');
man.for([1, 2, 3, 4, 5]).do(function (number) {
// On each item.
this.done(number + 1);
}).then(function (results) {
// When all items have processed.
console.log(results); // [2, 3, 4, 5, 6]
});
var man = require('man');
man.forAsync([1, 2, 3, 4, 5]).do(function (number) {
// On each item.
this.done(number + 1);
}).then(function (results) {
// When all items have processed.
console.log(results); // [2, 3, 4, 5, 6]
});
FAQs
Web Manager for Github Projects and Issues
The npm package man receives a total of 31 weekly downloads. As such, man popularity was classified as not popular.
We found that man 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.