Download (5 KB)

How do I install this?

This mod can parse and write CSV (Comma-Separated Values) files from and to strings. Only CSV files that are RFC 4180-compliant are supported to keep it simple.

According to RFC 4180, CSV is a file format that stores textual data into a table-like structure, with rows and columns, where each row is separated by CR LF, and each value in a row is separated by a comma. It looks like this:

apple,pear,orange,pineapple,raspberry
34,594,330,49430,-403
"quotation marks","They said ""Hello"" to me.","Hello, World!","Luanti","CSV"

This mod aims to be as simple as possible by avoiding unnecessary and confusing features. Only the bare minimum, but enough to be useful.

Features 🔗

  • Parse a string in CSV format into a Lua table
  • Write a Lua table into a CSV string
  • Full compliance with RFC 4180
  • Values can include any characters, including newlines, commas and quotation marks
  • No bullshit, just CSV

Reviews

Review

Do you recommend this mod?

  • No reviews, yet.