tsbase
    Preparing search index...

    Class Csv

    Index

    Methods

    • Accepts a csv string amd returns the JSON equivalent object.

      Type Parameters

      • T extends object

      Parameters

      • csv: string
      • headerKeys: (null | string)[]

        sequential array of keys for each header in the given csv

      Returns T[]

    • Accepts a json object and returns the CSV string equivalent.

      Parameters

      • headers: string[]
      • json: object

      Returns string