Socket
Socket
Sign inDemoInstall

readable-from-web

Package Overview
Dependencies
13
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    readable-from-web

Experimental converter from WHATWG ReadableStream to readable-stream Readable


Version published
Weekly downloads
1K
increased by7.42%
Maintainers
2
Install size
2.80 MB
Created
Weekly downloads
 

Readme

Source

Readable from Web

CI Coverage Version

An experimental converter from WHATWG ReadableStream to readable-stream Readable, loosely following the functionality of Node's own implementation of Readable.fromWeb to the extent possible without introducing anything new.

Install

This package can be installed via npm.

npm install readable-from-web

Usage

import { readableFromWeb } from 'readable-from-web';

async function example(request, init) {
  const response = await fetch(request, init);
  const whatwgReadableStream = fetch.body;
  const readableStreamReadable = readableFromWeb(whatwgReadableStream);
}

License

This code is released under the MIT license.

FAQs

Last updated on 25 Mar 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc