New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

flip-stream-js

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flip-stream-js

Streaming for browser file object

  • 0.1.6
  • latest
  • npm
  • Socket score

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

Stream from HTML5 File objects

Usage

Readable

The readable portion of this module allows you to pass in an HTML5 file object and treat it as a NodeJS stream.

var FlipStream = require('flip-stream-js')
var stream = ... // Some type of NodeJS style stream, like a BinaryJS stream
var file = document.getElementById('fileinput').addEventListener('change', function() {
  var reader = FlipStream.Readable(file);
  reader.pipe(stream);
});

Writable

This has not been implemented yet but will allow you to take an incoming stream and pipe it to a file being saved in the browser. The goal is to avoid holding the entire file in memory while you are receiving it.

ToDo:

  • Add writable stream for saving files to disk in browser as a stream
  • Add some usage documentation
  • Add logger and debug mode for all existing logging

FAQs

Package last updated on 11 Aug 2016

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