
Security News
Federal Government Rescinds Software Supply Chain Mandates, Makes SBOMs Optional
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.
iterator-async
Advanced tools
Iterate over a stack of async functions.
This module is intended to be used with loader-cachebut may be used by itself or in other modules.
Install with npm
$ npm i iterator-async --save
var iterator = require('iterator-async');
Iterate over a stack of async functions passing the results of each function to the next function in the stack.
Params
stack {Array}: Array of functions to call.returns {Function}: Returns a function that will iterator over the given stack of functions.var fs = require('fs');
var iterator = require('iterator-async');
var stack = [
function (fp, next) { return fs.readFile(fp, 'utf8', next); },
function (contents, next) { return next(null, JSON.parse(contents)); }
];
var readJSON = iterator(stack);
readJSON('./package.json', function (err, pkg) {
if (err) console.error(err);
console.log(pkg);
});
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Brian Woodward
Copyright © 2015 Brian Woodward Released under the MIT license.
This file was generated by verb-cli on June 17, 2015.
FAQs
Iterate over a stack of async functions.
The npm package iterator-async receives a total of 9 weekly downloads. As such, iterator-async popularity was classified as not popular.
We found that iterator-async demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.

Research
/Security News
A Chrome extension claiming to hide Amazon ads was found secretly hijacking affiliate links, replacing creators’ tags with its own without user consent.