stream-to-blob

WebJar for stream-to-blob

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

stream-to-blob
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

stream-to-blob
WebJar for stream-to-blob
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download stream-to-blob

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : once jar [1.3.3,2)

Project Modules

There are no modules declared in this project.

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.

Versions

Version
1.0.1