bipolar-stream

Helps detect change in a streaming fashion


Keywords
bipolar, stream
License
ISC
Install
npm install bipolar-stream@2.0.1

Documentation

about

Helps detect change in a streaming fashion.

setup

Download from the npm registry:

# Add to package.json
npm install bipolar-stream

# Try out the enclosed example
node node_modules/bipolar-stream/example

usage

Give it a starting value then use like any other stream:

import bender from "bipolar-stream"
import process from "process"

const output = bender(100)

process.stdin.pipe(output).pipe(process.stdout)

output.on("data", () => {
  process.stdout.write("\n")
})

output.on("error", console.error)