Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is very simple way to process string with CSV? #448

Open
skliarovartem opened this issue Dec 4, 2024 · 1 comment
Open

Where is very simple way to process string with CSV? #448

skliarovartem opened this issue Dec 4, 2024 · 1 comment

Comments

@skliarovartem
Copy link

How to parse simple string which I got from file?

@wdavidw
Copy link
Member

wdavidw commented Dec 5, 2024

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants