GlucoseIQ

Ingestion

Parse any Dexcom/Libre/Nightscout/Tidepool CSV export.

1 function

Generated from the source TSDoc — every signature, parameter, and example is the real thing.

parseGlucoseCSV

parseGlucoseCSV(text: string, options: CSVParseOptions): GlucoseReading[]

Parses CSV text into glucose readings.

ParameterDescription
textThe CSV document
optionsColumn names, unit, and delimiter

Returns — Parsed readings (rows with an unparseable value or timestamp are skipped)

Throws — If a named column is not present in the header

const readings = parseGlucoseCSV(csv, {
  timestampColumn: 'Timestamp (YYYY-MM-DDThh:mm:ss)',
  valueColumn: 'Glucose Value (mg/dL)',
})

On this page