# node-unstable-stream **Repository Path**: mirrors_emersion/node-unstable-stream ## Basic Information - **Project Name**: node-unstable-stream - **Description**: A stream detecting unstable behaviors - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-24 - **Last Updated**: 2026-07-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # node-unstable-stream [![Build Status](https://travis-ci.org/emersion/node-unstable-stream.svg?branch=master)](https://travis-ci.org/emersion/node-unstable-stream) A stream detecting unstable behaviors. ```js var UnstableStream = require('unstable-stream'); // Create a new stream // If data passed into the stream doesn't matches constraints, // the 'instability' event will be emitted var stream = new UnstableStream({ max: 50, // Maximum value min: -60, // Minimum value maxDelta: 5, // Maximum distance between two values maxPeakDelta: 10 // Maximum distance between two peaks }); stream.on('instability', function () { console.log('Instability detected!'); }); // Write numbers to the stream stream.write(0); stream.write(1); stream.write(2); ```