Skip to main content
Module

x/flat/csv.ts

A collection of postprocessing utilities for flat
Go to Latest
File
import { parse, ParseOptions } from 'https://deno.land/std@0.92.0/encoding/csv.ts'
export async function readCSV(path: string, options?: ParseOptions): Promise<unknown> { const raw = await Deno.readTextFile(path) const content = await parse(raw, options) return content}
export async function writeCSV(path: string, data: string) { await Deno.writeTextFile(path, data);}