Typst Fumadocs

CSV

Documentation for the `csv` function.

Reads structured data from a CSV file.

The CSV file will be read and parsed into a 2-dimensional array of strings: Each row in the CSV file will be represented as an array of strings, and all rows will be collected into a single array. Header rows will not be stripped.

Example

Loading compiler...
#csv(
  source,
  delimiter: str,
  row-type: type
) -> array

Parameters

Prop

Type

Definitions

Reads structured data from a CSV string/bytes.

#csv.decode(
  data,
  delimiter: str,
  row-type: type
) -> array

Parameters

Prop

Type

On this page