stream-to-blob

WebJar for stream-to-blob

Лицензия

Лицензия

MIT
Группа

Группа

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

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

stream-to-blob
Последняя версия

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

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

stream-to-blob
WebJar for stream-to-blob
Ссылка на сайт

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

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

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

https://github.com/feross/stream-to-blob

Скачать stream-to-blob

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

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

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : once jar [1.3.3,2)

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

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

stream-to-blob travis npm downloads javascript style guide

Convert a Readable Stream to a Blob

Sauce Test Status

This package converts a Readable Stream into a Blob.

This package is used by WebTorrent.

install

npm install stream-to-blob

usage

const streamToBlob = require('stream-to-blob')

const stream = new stream.Readable() // any Node.js readable stream
const blob = await streamToBlob(stream)

api

promise = streamToBlob(stream, [mimeType])

Convert the given readable stream, stream, into a W3C Blob. If mimeType is provided, then the Blob will have its mime type set to that value.

Returns a Promise which resolves to a Blob object on success. Otherwise, rejects with an Error.

license

MIT. Copyright (c) Feross Aboukhadijeh.

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

Версия
1.0.1