# node-gedcom

> Allows parsing a GEDCOM file record-by-record

Latest version **0.1.0** (published 2017-09-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-gedcom
pnpm add node-gedcom
yarn add node-gedcom
bun add node-gedcom
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2017-09-07 |
| First published | 2017-09-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kristopher Wilson |
| Maintainers | mrkrstphr |

## Links

- npm: https://www.npmjs.com/package/node-gedcom
- npm.io page: https://npm.io/package/node-gedcom

## Dependencies (2)

- [babel-cli](https://npm.io/package/babel-cli.md) ^6.26.0
- [babel-preset-env](https://npm.io/package/babel-preset-env.md) ^1.6.0

## Recent versions

- 0.1.0 (latest) — 2017-09-07

## README

# node-gedcom

> Allows parsing a GEDCOM file record-by-record.

## Installation

```
yarn add node-gedcom
```

## Usage

```js
import fs from 'fs';
import GedcomParser from 'gedcom-stream';

const parser = new GedcomParser();
parser.on('record', record => console.log(record));

parser.process(fs.createReadStream('/path/to/your.ged'));
```

Which would yield each record in the GEDCOM file:

```json
{
    "level": 0,
    "type": "INDI",
    "data": "I0001",
    "children": [
        {
            "level": 1,
            "type": "NAME",
            "data": "Abraham /Lincoln/",
            "children": []
        },
        {
            "level": 1,
            "type": "SEX",
            "data": "M",
            "children": []
        },
        {
            "level": 1,
            "type": "BIRT",
            "data": null,
            "children": [
                {
                    "level": 2,
                    "type": "DATE",
                    "data": "12 Feb 1809",
                    "children": []
                },
                {
                    "level": 2,
                    "type": "PLAC",
                    "data": "Hodgenville, Kentucky",
                    "children": []
                }
            ]
        }
    ]
}
```

---
_Source: https://npm.io/package/node-gedcom · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
