is-stream-ended

WebJar for is-stream-ended

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-stream-ended
Last Version

Last Version

0.1.4
Release Date

Release Date

Type

Type

jar
Description

Description

is-stream-ended
WebJar for is-stream-ended
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/stephenplusplus/is-stream-ended

Download is-stream-ended

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/is-stream-ended/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>is-stream-ended</artifactId>
    <version>0.1.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/is-stream-ended/
implementation 'org.webjars.npm:is-stream-ended:0.1.4'
// https://jarcasting.com/artifacts/org.webjars.npm/is-stream-ended/
implementation ("org.webjars.npm:is-stream-ended:0.1.4")
'org.webjars.npm:is-stream-ended:jar:0.1.4'
<dependency org="org.webjars.npm" name="is-stream-ended" rev="0.1.4">
  <artifact name="is-stream-ended" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='is-stream-ended', version='0.1.4')
)
libraryDependencies += "org.webjars.npm" % "is-stream-ended" % "0.1.4"
[org.webjars.npm/is-stream-ended "0.1.4"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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.

Versions

Version
0.1.4
0.1.0