csvToJson icon indicating copy to clipboard operation
csvToJson copied to clipboard

[Feature Request] Promises or raw string support

Open mgrybyk opened this issue 1 year ago • 0 comments

Actual Behavior

const json2 = csvToJson.fieldDelimiter(',').getJsonFromCsv(sourceReportDir).

getJsonFromCsv uses synchronous file API.

Description

The synchronous API is not suitable for modern Promise apps.

Introduce Promise API or let users read files on their own and allow passing raw string.

Specifications

  • Version: 2.46.0

mgrybyk avatar May 05 '24 21:05 mgrybyk