parse-gedcom
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

parse-gedcom

A small, simple parser for GEDCOM 5.5.1.

API Documentation

Installation

The parse-gedcom package can be added as a dependency to use in your code, or if you'd like to just use the CLI, install it globallly:

npm install -g parse-gedcom

CLI

Usage
$ parse-gedcom <input>
	Options
	  --type, -s   Output type (json, d3.json, dot)
	Examples
	  $ parse-gedcom input.ged output.json

Caveats

  • The GEDCOM specification allows use of an ANSEL character encoding - a nearly-unknown predecessor to UTF-8. This parser doesn't currently handle ANSEL encoding, so it may behave oddly with files in ANSEL. However, it appears that most programs that export GEDCOM default to or at least support UTF-8, which is recommended instead.
  • The GEDCOM standard is ubiquitous and practical, but has embedded cultural biases. This parser allows "non-standard" input in places where GEDCOM is bigoted, like the SEX_VALUE field.

/parse-gedcom/

    Package Sidebar

    Install

    npm i parse-gedcom

    Weekly Downloads

    277

    Version

    2.0.1

    License

    ISC

    Unpacked Size

    157 kB

    Total Files

    23

    Last publish

    Collaborators

    • tmcw