UNPKG

gedcom-d3

Version:

A GEDCOM parser, which translates GEDCOM (.ged) files into D3 capable JSON. This package is specifically designed to prepare data for use in https://github.com/mister-blanket/kin-cloud

20 lines (12 loc) 681 B
# gedcom-d3 Based on [tmcw/parse-gedcom](https://github.com/tmcw/parse-gedcom), this project seeks to improve d3ize functionality to make Gedom data in more fully-functional d3 capable JSON, specifically for use in plotting with [vasturiano/3d-force-graph](https://github.com/vasturiano/3d-force-graph). View an implementation at [mister-blanket/blood-lines](https://github.com/mister-blanket/blood-lines) ## Usage npm install --save gedcom-d3 ## API * `.parse(string)` -> JSON * `d3ize(parse(string));` -> d3-capable JSON ```javascript import gedcomFile from './gedcoms/sample_ancestors.ged'; const d3Data = d3ize(parse(gedcomFile)); // Feed d3Data into 3d-force-graph ```