0.3.1 • Published 12 years ago

csv-iterator v0.3.1

Weekly downloads
1
License
-
Repository
-
Last release
12 years ago

#csv-iterator Build Status

NPM

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 source
  • lineIterator: use an async line-iterator as the input source
  • toObjects: transform the rows from arrays to objects according to the csv header
  • from: start iteration on the specified row index (index is inclusive)
  • to: end iteration on the specified row index (index is inclusive)
0.3.1

12 years ago

0.3.0

12 years ago

0.2.2

12 years ago

0.2.1

12 years ago

0.2.0

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago