Wondering what’s next for npm?Check out our public roadmap! »

@mauna/reason-web-streams

0.1.10-development • Public • Published

@mauna/reason-web-streams

npm License: MIT

ReasonWebStreams is the Reason bindings for web-streams-polyfill.

Install

npm i @mauna/reason-web-streams

Add it to bsconfig.json

  "bs-dependencies": [
+   "@mauna/reason-web-streams",
  ]

You can now use the MaunaReasonWebStreams module.

Usage

open MaunaReasonWebStreams
 
let underlyingSource: ReadableStream.underlyingSource('a) = {
  start: None,
  pull: None,
  cancel: None,
  type_: None,
};
 
let strategy: ReadableStream.queuingStrategy('a) = {
  highWaterMark: None,
  size: None,
};
 
let readable =
  ReadableStream.make(~underlyingSource, ~strategy=Some(strategy), ());
 

Keywords

Install

npm i @mauna/reason-web-streams

DownloadsWeekly Downloads

12

Version

0.1.10-development

License

MIT

Unpacked Size

42.8 kB

Total Files

20

Last publish

Collaborators

  • avatar
  • avatar
  • avatar