node-csv icon indicating copy to clipboard operation
node-csv copied to clipboard

Where is very simple way to process string with CSV?

Open skliarovartem opened this issue 1 year ago • 1 comments

How to parse simple string which I got from file?

skliarovartem avatar Dec 04 '24 03:12 skliarovartem

Just use the sync API

import { generate, parse, transform, stringify } from "csv/sync";
// Or
import { parse } from "csv-parse/sync";
// Then
parse("your,csv,string", options);

wdavidw avatar Dec 05 '24 08:12 wdavidw

Closing since an answer was provided and no comment was added.

wdavidw avatar Jul 16 '25 18:07 wdavidw