Skip to main content
Module

std/encoding/csv.ts>HeaderOptions

Deno standard library
Go to Latest
interface HeaderOptions
import { type HeaderOptions } from "https://deno.land/std@0.58.0/encoding/csv.ts";

Parse the CSV string/buffer with the options provided.

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

Properties

name: string

Name of the header 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.