SPeCS Packages Documentation
    Preparing search index...

    Methods related with the CSV format.

    Index

    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.

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

      Parameters

      • path: string
      • Optionaldelimiter: string

      Returns any