UNPKG

gedcom-ts

Version:

TypeScript GEDCOM toolkit for browser apps: import .ged/.zip, edit typed genealogy data, and export GEDCOM or GEDZIP.

14 lines (13 loc) 423 B
export type ParsedGedcomLine = { level: string; tag: string; value: string; }; /** * Parse a single GEDCOM data line into `{ tag, value }` after the leading level. * * Example: * - `"1 NAME Jean /Dupont/"` -> `{ tag: "NAME", value: "Jean /Dupont/" }` * - `"2 DATE 1 JAN 1900"` -> `{ tag: "DATE", value: "1 JAN 1900" }` */ export declare function parseGedcomLine(rawLine: string): ParsedGedcomLine | null;