Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/encoding/csv.ts>ColumnOptions

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface ColumnOptions
import { type ColumnOptions } from "https://deno.land/std@0.72.0/encoding/csv.ts";

Parse the CSV string/buffer with the options provided.

ColumnOptions provides the column definition and the parse function for each entry of the column.

Properties

name: string

Name of the column to be used as property

optional
parse: (input: string) => unknown

Parse function for the column. This is executed on each entry of the header. This can be combined with the Parse function of the rows.