Socket
Socket
Sign inDemoInstall

stream-to-blob-url

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-to-blob-url

Convert a Readable Stream to a Blob URL


Version published
Weekly downloads
994
decreased by-23.48%
Maintainers
1
Weekly downloads
 
Created
Source

stream-to-blob-url travis npm downloads javascript style guide

Convert a Readable Stream to a Blob URL

Sauce Test Status

This package converts a Readable Stream into a Blob URL.

This package is used by WebTorrent.

install

npm install stream-to-blob-url

usage

var toBlobURL = require('stream-to-blob-url')

toBlobURL(fs.createReadStream('file.txt'), function (err, url) {
  if (err) return console.error(err.message)
  console.log(url)
})

api

toBlobURL(stream, [mimeType], callback)

Convert the Readable stream into a W3C Blob URL, optionally, with the given mimeType. The callback will be called with two arguments:

  • An Error object, or null
  • A string blob url (blob:...)

license

MIT. Copyright (c) Feross Aboukhadijeh.

Keywords

FAQs

Package last updated on 28 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc