@nan0web/csv0
v3.1.0
Published
CSV with FrontMatter (nan0/yaml) parser
Downloads
26
Readme
@nan0web/csv0
CSV with FrontMatter (nan0/yaml). A pure data format combining the meta-configurability of YAML with the dense tabular layout of CSV.
---
layout: table
columns:
id:
width: 50px
align: right
name:
label: Full Name
color: primary
---
id,name,email
1,Yaro,[email protected]
2,Bob,[email protected]API
import { parseCSV0 } from '@nan0web/csv0'
const { frontMatter, csvBody } = parseCSV0(rawString)
// frontMatter: string (parse with yaml or nan0 parser)
// csvBody: string (parse with fast csv parser)