write-stream

WebJar for write-stream

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

write-stream
Last Version

Last Version

0.4.3
Release Date

Release Date

Type

Type

jar
Description

Description

write-stream
WebJar for write-stream
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/Raynos/write-stream

Download write-stream

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : readable-stream jar [0.0.2,0.1)

Project Modules

There are no modules declared in this project.

write-stream

Base class for writable streams

Example array

var toArray = require("write-stream").toArray
    , array = []
    , stream = toArray(array, function end() {
        /* never called as process.stdin does not end */
    })

process.stdin.pipe(stream)

setInterval(function () {
    // peek at the buffered array of chunks from stdin every second
    console.log(array)
}, 1000)

Example function

var WriteStream = require("write-stream")
    , stream = WriteStream(function write(chunk) {
        // chunks from stdin
    })

process.stdin.pipe(stream)

Installation

npm install write-stream

Contributors

  • Raynos

MIT Licenced

Versions

Version
0.4.3