Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

xubaiw/csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSV

Parse and write CSV string, based on the grammer of RFC 4180.

import CSV

#eval CSV.parse "a,\"b\nc\"\r\n1,2"
-- Except.ok #[#["a", "b\nc"], #["1", "2"]]

#eval CSV.compress #[#["a\r\n", "b,", "c"], #["1", "2", "3"]]
-- "\"a\x0d\n\",\"b,\",c\x0d\n1,2,3"

Todo

  • Customizable separators and other configs
  • Typed reader
  • Read by row

Releases

No releases published

Packages

No packages published

Languages