bulk-write-stream

WebJar for bulk-write-stream

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

bulk-write-stream
Последняя версия

Последняя версия

1.1.4
Дата

Дата

Тип

Тип

jar
Описание

Описание

bulk-write-stream
WebJar for bulk-write-stream
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

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

Скачать bulk-write-stream

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
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)

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
1.1.4