Package Exports
- web-streams-polyfill
- web-streams-polyfill/dist/polyfill
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 (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.
Links
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>