JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 50726
  • Score
    100M100P100Q35215F
  • License MIT

Web Streams, based on the WHATWG spec reference implementation

Package Exports

  • @mattiasbuelens/web-streams-polyfill
  • @mattiasbuelens/web-streams-polyfill/ponyfill
  • @mattiasbuelens/web-streams-polyfill/ponyfill/es6

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mattiasbuelens/web-streams-polyfill) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

web-streams-polyfill

Web Streams, based on the WHATWG spec reference implementation.
Join the chat at https://gitter.im/web-streams-polyfill/Lobby

Usage

For node.js / browserify users:

var streams = require("web-streams-polyfill");
var readable = new streams.ReadableStream;

// Or, in ES6

import { ReadableStream } from "web-streams-polyfill";

For use as polyfill, include the dist/polyfill.min.js file in your html before your main script.

<script src="/path/to/polyfill.min.js"></script>
<script type="text/javascript">

  var readable = new window.ReadableStream;

</script>

Contributors

Thanks to these people for their contributions: