UNPKG

gedcom-latest

Version:

a simple and readable gedcom parser

22 lines (21 loc) 514 B
import { Node, Parent } from "unist"; type Link = { source: string; target: string; value: string; }; type ForceData = { nodes: Node[]; links: Link[]; }; /** * Transforms a GEDCOM AST - likely produced using * `parse` - into a data structure suited for * a [D3 force directed graph](https://observablehq.com/@d3/force-directed-graph) * layout. * * @param root - Parsed GEDCOM content * @returns D3-friendly JSON */ export declare function toD3Force(root: Parent): ForceData; export {};