Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 709 Bytes

parser.md

File metadata and controls

31 lines (25 loc) · 709 Bytes
language layout title date comments sharing footer navigation github
en
page
Parsing
2012-10-09 16:24:28 UTC
false
false
false
csv

The library extend the EventEmitter and emit the following events:

  • row
    Emitted by the parser on each line with the line content as an array of fields.
  • end
    Emitted when no more data will be parsed.
  • error
    Emitted when an error occured.

parse(chars)

Parse a string which may hold multiple lines. Private state object is enriched on each character until transform is called on a new line.