bulk-write-stream

WebJar for bulk-write-stream

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

bulk-write-stream
Last Version

Last Version

1.1.4
Release Date

Release Date

Type

Type

jar
Description

Description

bulk-write-stream
WebJar for bulk-write-stream
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/mafintosh/bulk-write-stream

Download bulk-write-stream

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.npm : buffer-from jar [1.0.0,2)
org.webjars.npm : inherits jar [2.0.1,3)
org.webjars.npm : readable-stream jar [2.1.4,3)

Project Modules

There are no modules declared in this project.

bulk-write-stream

Writable stream that forwards everything in the highWaterMark buffer to a custom write function using the new writev api in streams

npm install bulk-write-stream

build status

Usage

var bulk = require('bulk-write-stream')

var ws = bulk.obj(function (list, cb) {
  console.log('should write list of objects', list)
  cb()
})

ws.write('a')
ws.write('b')
ws.write('c')
ws.write('d')

API

var ws = bulk([options], write, [flush])

Create a new binary bulk write stream. Options are forwarded to the writable stream constructor. Write is called with write(list, cb) where list is everything currently buffered in the writable stream.

If you specify a flush function that will be called with flush(cb) before the stream emits finish.

var ws = bulk.obj([options], write, [flush])

A shorthand for setting objectMode: true

License

MIT

Versions

Version
1.1.4