flow-nans
Through stream which removes all non-numeric values from a stream.
Installation
$ npm install flow-nans
Examples
var eventStream =fStream = ;var data = 9 ;// Create some data...data 0 = 'a';data 1 = true;data 2 = {};data 3 = {};data 4 = ;data 5 = undefined;data 6 = NaN;data 7 = null;data 8 = 0;// Create a readable stream:var readStream = eventStream;// Create a new NaN filter stream:var stream =;// Create the pipeline:readStream;
Tests
Unit tests use the Mocha test framework with Chai assertions.
Assuming you have installed Mocha, execute the following command in the top-level application directory to run the tests:
$ mocha
All new feature development should have corresponding unit tests to validate correct functionality.
License
Copyright
Copyright © 2014. Athan Reines.