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

std/encoding/csv.ts>HeaderOptions

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
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.