yarn add exstream.js
# or
npm install exstream.js
Here is a sync example:
const exs = require('exstream.js');
const res = exs([1, 2, 3])
.reduce((memo, x) => memo + x, 0)
.value()
// res is 6
Look at the documentation or see more examples in the test folder.