Socket
Socket
Sign inDemoInstall

stream.finished

Package Overview
Dependencies
12
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    stream.finished

Polyfill/shim for stream.finished in node versions < v10


Version published
Weekly downloads
25K
decreased by-9.75%
Maintainers
1
Install size
236 kB
Created
Weekly downloads
 

Changelog

Source

v1.0.1 2018-05-14

  • Fixed changelog and package.json.

Readme

Source

stream.finished

Build Status npm

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.

Usage

Direct

const finished = require('stream.finished');
// Use `finished` just like the built-in method on `stream`

Shim

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`

Keywords

FAQs

Last updated on 15 May 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc