0.3.1 • Published 12 years ago
csv-iterator v0.3.1
A ligthweight async csv-iterator for Node.js.
Example that creates an iterator from a file to iterate over rows 10 to 20:
var createCSVIterator = require('csv-iterator')
var iterator = createCSVIterator({path: 'input.csv', from: 10, to: 20})The resulting iterator can be used with the async-iterators module to apply transformations or write to a target.
##Documentation ##createCSVIterator(options)
path: use a file path as the input sourcelineIterator: use an async line-iterator as the input sourcetoObjects: transform the rows from arrays to objects according to the csv headerfrom: start iteration on the specified row index (index is inclusive)to: end iteration on the specified row index (index is inclusive)

