Function streamCsvToJsonAsync

  • Asynchronous version with worker thread support

    Parameters

    • csv: string
    • options: CsvToJsonStreamOptions & {
          useWorkers?: boolean;
          workerCount?: number;
          chunkSize?: number;
          onProgress?: (
              _progress: { processed: number; total: number; percentage: number },
          ) => void;
      } = {}

    Returns Promise<AnyArray>