Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cubbit/web-file-stream

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cubbit/web-file-stream

Node's file stream APIs for the web

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Web file stream Build Status license npm

Node's file stream APIs for the web.

import {WebFileStream} from '@cubbit/web-file-stream';

const file = new File(['My test file'], 'test-file.txt', {
    type: 'text/plain'
});

const read_stream = WebFileStream.create_read_stream(file);

read_stream.on('error', console.error);
read_stream.on('data', (data) => console.log(data));
read_stream.on('end', () => console.log('File read!'));

Installation

This is a module available through the npm registry. Installation is done using the npm install command:

npm install @cubbit/web-file-stream

Features

  • Automatic backpressuring
  • Compatibility with File object API
  • Same API as Node.js Stream objects

Tests

To run the test suite, first install the dependencies, then run npm test:

npm install
npm test

License

MIT

Keywords

FAQs

Package last updated on 05 Mar 2021

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