CSV

CSV

new CSV(cfg)

Constructor. It accepts an Options object.

Source:
See:
Parameters:
Name Type Description
cfg Options | null

Options to be configured.

Methods

configure(cfg)

Configure the options.

Source:
See:
Parameters:
Name Type Description
cfg Options | null

Options to be configured.

parse(str) → {Definition|any}

Parse the input string based on the options configured.

Source:
See:
Parameters:
Name Type Description
str string

input string to be parsed (CSV string).

Returns:
Type:
Definition | any

Data structure produced (or return value from fail function).