Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
stream.finished
Advanced tools
Polyfill for stream.finished in node versions < v10
node v10.0.0 added support for a built-in stream.finished
:
https://github.com/nodejs/node/pull/19828
This package provides the built-in
stream.finished
in node v10.0.0 and later, and a replacement in other environments.
This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec.
npm install stream.finished
Additionally for Typescript:
npm install -D @types/node
const finished = require('stream.finished');
// Use `finished` just like the built-in method on `stream`
Typescript:
import finished from 'stream.finished';
// Use `finished` just like the built-in method on `stream`
require('stream.finished/shim')();
// `stream.finished` is now defined
const stream = require('stream');
// Use `stream.finished`
or:
require('stream.finished/auto');
// `stream.finished` is now defined
const stream = require('stream');
// Use `stream.finished`
Typescript:
import finishedShim from 'stream.finished/shim';
finishedShim();
// `stream.finished` is now defined
import stream from 'stream';
// Use `stream.finished`
or:
import 'stream.finished/auto';
// `stream.finished` is now defined
import stream from 'stream';
// Use `stream.finished`
Copyright (c) 2018-2019 Piotr Roszatycki piotr.roszatycki@gmail.com
Copyright Node.js contributors. All rights reserved.
Copyright (c) 2014 Mathias Buus
FAQs
Polyfill/shim for stream.finished in node versions < v10
We found that stream.finished 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
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.