UNPKG

@specs-feup/lara

Version:

A js port of the popular framework for building source-to-source compilers

22 lines 824 B
/** * Methods related with the CSV format. */ export default class Csv { /** * Reads a CSV file and returns an object with the data inside the file. */ static read(path: string, delimiter?: string): any; /** * @param contents - */ static parse(contents: string, delimiter?: string): any; /** * Converts an object in a specific format to a CSV string. * * @param data - 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. * @param separator - the separator character to use. By default is ;. * @returns the CSV corresponding to the object. */ static generate(data: Record<any, any>, separator?: string): string; } //# sourceMappingURL=Csv.d.ts.map