Methods related with the CSV format.

Constructors

Methods

Constructors

Methods

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

    Parameters

    • data: Record<any, any>

      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.