ANTAREX API

Clava API

LARA API

LARA Common Language API

(.js)
laraImport("lara.Csv");

(.lara)
import lara.Csv;

Csv

Csv

Csv

Methods related with the CSV format.


Static Members

generate

generate(data, separator)

Converts an object in a specific format to a CSV string.

Parameters

data: object - an aggregate of values with the same keys, uses the keys of the given aggregate as the name of the entries, and the keys of the values as column entries.
separator: string - the separator character to use. By default is ;.

Returns

string - the CSV corresponding to the object.

parse

parse(contents, delimiter)

Parameters

contents: string
delimiter: any

read

read(path, delimiter)

Reads a CSV file and returns an object with the data inside the file.

Parameters

path: any
delimiter: any