deno-docs icon indicating copy to clipboard operation
deno-docs copied to clipboard

std/csv parse options do not include strip: bool

Open Jackbennett opened this issue 1 year ago • 0 comments

https://github.com/denoland/docs/blob/de54e07e2f7c8f91e2112286e3dda5abf6f48027/examples/parsing-serializing-csv.ts#L24

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?

Jackbennett avatar Nov 12 '24 11:11 Jackbennett