Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
stream-forward
Advanced tools
Forward events to the next stream in the pipeline.
$ npm install --save stream-forward
var streamForward = require('stream-forward');
var streamForward = require('stream-forward');
var request = require('request');
streamForward(request('http://yahoo.com'), 'response')
.pipe(process.stdout)
.on('response', function (response) {
// `response` from the request stream.
});
Note: don't neglect proper event handling on the individual parts of your stream. This is just a convenience when you have to manually listen and re-emit events across a middleman/spy pipe.
Type: Stream
The source stream to spy on. This is returned from the function to allow chaining.
Optional. Configuration options.
Type: Boolean
Default: false
If true, when a new stream is attached to stream
, it will receive the events emitted by the original.
var sourceStream = request('http://yahoo.com');
var through = require('through2');
streamForward(sourceStream)
.pipe(through())
.on('complete', function () {
// Called.
})
.pipe(through())
.on('complete', function () {
// Not called.
});
```f
##### Enabled
```js
var sourceStream = request('http://yahoo.com');
var through = require('through2');
streamForward(sourceStream, { continuous: true })
.pipe(through())
.on('complete', function () {
// Called.
})
.pipe(through())
.on('complete', function () {
// Called.
});
Type: Array
Default: All events will be emitted.
Event names to watch and re-emit on attached streams.
Type: Array
Default: []
Event names to ignore from stream
.
FAQs
Forward stream events.
We found that stream-forward 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.