GEDCOM parser and output formatter with micro formats
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
data
docs
git-hooks
src
test
.gitignore
.istanbul.yml
.jsinspectrc
.nvmrc
LICENSE
README.md
build.js
package.json

README.md

js-gedcom

GEDCOM parser and output formatter with micro formats

src/person.js is a library of gedcom rools, example.js is an example file how to use it. I'm using it to parse data and then inject into a database.

A work very much in progress. A port of my original https://github.com/pauly/php-gedcom

install

npm install

build

npm run build -- data/Dummy.ged

This will update the database, and build a sample page to the docs/ folder.

Output one example tree:

Person.parse('data/Dummy.ged', function(err, gedcom) {
  if (err) throw err;
  var person = Person.singleton('I1', gedcom);
  console.log(person.htmlTree(2, 3)); // 2 generations of children, 3 or parents
});

test

npm test

code style

using http://standardjs.com

npm run lint