Security News
vlt Debuts New JavaScript Package Manager and Serverless Registry at NodeConf EU
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
collect-all
Advanced tools
Returns a stream which fires a callback and becomes readable once all input is received. Intended for buffer/string streams.
Duplex
⏏Kind: Exported function
Param | Type | Description |
---|---|---|
[callback] | function | called with the collected json data, once available. The value returned by the callback will be passed downstream. |
[options] | object | passed to through stream constructor created to house the above callback function.. If the callback function returns a non-string/buffer value, set objectMode: true . |
Example
An example command-line client script - JSON received at stdin is stamped with received
then written to stdout.
var collectAll = require("collect-all")
process.stdin
.pipe(collectAll(function(input){
input += 'received'
return input
}))
.on("error", function(err){
// input from stdin failed to parse
})
.pipe(process.stdout)
© 2015 Lloyd Brookes <75pound@gmail.com>. Documented by jsdoc-to-markdown.
FAQs
Returns a stream which becomes readable once all input is received
The npm package collect-all receives a total of 112,962 weekly downloads. As such, collect-all popularity was classified as popular.
We found that collect-all 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
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
Security News
Research
The Socket Research Team uncovered a malicious Python package typosquatting the popular 'fabric' SSH library, silently exfiltrating AWS credentials from unsuspecting developers.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.