chunk-store-stream

WebJar for chunk-store-stream

Лицензия

Лицензия

MIT
Группа

Группа

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

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

chunk-store-stream
Последняя версия

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

3.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

chunk-store-stream
WebJar for chunk-store-stream
Ссылка на сайт

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

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

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

https://github.com/feross/chunk-store-stream

Скачать chunk-store-stream

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

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

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.npm : block-stream2 jar [1.0.0,2)
org.webjars.npm : readable-stream jar [2.0.5,3)

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

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

chunk-store-stream travis npm downloads javascript style guide

Convert an abstract-chunk-store store into a readable or writable stream

abstract chunk store

Read/write data from/to a chunk store, with streams.

Install

npm install chunk-store-stream

Usage

Create a read stream

const { ChunkStoreReadStream } = require('chunk-store-stream')
const FSChunkStore = require('fs-chunk-store') // any chunk store will work

const chunkLength = 3
const store = new FSChunkStore(chunkLength)

// ... put some data in the store

const stream = new ChunkStoreReadStream(store, chunkLength, { length: 6 })
stream.pipe(process.stdout)

Create a write stream

const { ChunkStoreWriteStream } = require('chunk-store-stream')
const FSChunkStore = require('fs-chunk-store') // any chunk store will work
const fs = require('fs')

const chunkLength = 3
const store = new FSChunkStore(chunkLength)

const stream = new ChunkStoreWriteStream(store, chunkLength)
fs.createReadStream('file.txt').pipe(stream)

License

MIT. Copyright (c) Feross Aboukhadijeh.

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

Версия
3.0.1