streams

A lazy streams library for functional composition in JavaScript.

Usage no npm install needed!

<script type="module">
  import streams from 'https://cdn.skypack.dev/streams';
</script>

README

Streams

Node CI

A lazy streams library for functional composition in JavaScript.

import "streams/polyfill";

process.stdin
  .streamLines()
  .map((s) => s.toLocaleUpperCase())
  .filter((s) => s.length > 3)
  .batch(3)
  .limit(2)
  .forEach(console.log)
  .then((_) => console.log("-- all done --"));