Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details →
Socket
Book a DemoSign in
Socket

is-stream-ended

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-stream-ended

Check if a stream has ended

latest
Source
npmnpm
Version
0.1.4
Version published
Weekly downloads
4.2M
7.66%
Maintainers
1
Weekly downloads
 
Created
Source

is-stream-ended

Check if a stream has ended.

$ npm install --save is-stream-ended
var isStreamEnded = require('is-stream-ended');

isStreamEnded(stream); // false
stream.end();
isStreamEnded(stream); // true

isStreamEnded(stream)

stream

  • Type: Stream, Object

Providing a stream will check against the stream._readableState object. To check from the _writableState, provide that object directly.

Keywords

stream

FAQs

Package last updated on 01 Apr 2018

Did you know?

Socket

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