Use readCsvAsJsonSync() instead. Removed in jtcsv 5.0.

  • Reads CSV file and converts to JSON (synchronous)

    Parameters

    • filePath: string

      Path to CSV file

    • options: CsvToJsonOptions & { validatePath?: boolean } = {}

      Configuration options (same as csvToJson)

    Returns AnyArray

    JSON array