CSV stream library for manipulating data
$ npm install
var refine = require('refiner')
fs.createReadStream('data/colorado5.csv')
.pipe(csv.parse())
.pipe(refine.skipfirst())
.pipe(refine.head(2))
.pipe(refine.print())
Run all test cases
$ mocha
Run a particular test case (-g)
$ mocha -g head
$ mocha -g sunrise
Resources
- BDD-style using should
- Assertion library for streams stream-assert
- colorado.csv - colordo census data
- colorado5.csv - colordo census data (first five rows, use this for testing/debugging)
- insurance.csv - (36k+ rows)
located in examples/