npm

npm’s 2019 JavaScript ecosystem survey analysis is now available! Get your copy here »

stream.finished

1.1.1 • Public • Published

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`

install

npm i stream.finished

Downloadsweekly downloads

757

version

1.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability