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

std/csv parse options do not include strip: bool #1133

Open
Jackbennett opened this issue Nov 12, 2024 · 0 comments
Open

std/csv parse options do not include strip: bool #1133

Jackbennett opened this issue Nov 12, 2024 · 0 comments

Comments

@Jackbennett
Copy link

Jackbennett commented Nov 12, 2024

import { parse, ParseOptions } from jsr:@std/csv

ParseOptions has no "strip"

I could go and add trimEnd onto #options.trimTrailingSpace and redocument strip into that. https://github.com/denoland/std/blob/69858cfd7b917ac4cd67a9c0557a2c6d223e2d7f/csv/parse.ts#L94-L96

Probably wouldn't bother with strip as a shorthand to leading/trailing.

What's the preferred interface?

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

No branches or pull requests

1 participant