node-instable-stream
A stream detecting unstable behaviors.
var UnstableStream = ; // Create a new stream// If data passed into the stream doesn't matches constraints,// the 'instability' event will be emittedvar stream = max: 50 // Maximum value min: -60 // Minimum value maxDelta: 5 // Maximum distance between two values maxPeakDelta: 10 // Maximum distance between two peaks; stream; // Write numbers to the streamstream;stream;stream;