Skip to main content
Module

x/simple_utility/mod.pure.full.ts>csvEncode

Simplify processing for Deno.
Go to Latest
function csvEncode
import { csvEncode } from "https://deno.land/x/simple_utility@v2.0.10/mod.pure.full.ts";

Convert from object array to CSV string.

Examples

Example 1

const csv = csvEncode([{
    aaa: 123,
    bbb: true
}]);

Type Parameters

T extends Record<keyof T, string | number | boolean>

Parameters

data: T[]
optional
bom: boolean

Returns

string