Skip to main content
Parse TSV (tab-separated values) strings into the Data structure expected by @graphysdk/core.

fromTSV

Signature

Options

hasHeader
boolean
default:"true"
Whether the first row contains column headers. When false, columns are auto-named Column 1, Column 2, etc.
locale
VizLocale
default:"EN_US"
Locale for number parsing. Determines thousand/decimal separator conventions. For example, 'PT_PT' treats 1.000,50 as 1000.5.
maxFileSize
number
default:"5"
Maximum allowed input size in megabytes. Throws an error if the input exceeds this limit.

Examples

Without Headers

Files with .tab extension are also treated as TSV.