@treeviz/gedcom-parser 1.0.22 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -0
- package/dist/classes/index.d.ts +1 -1
- package/dist/classes/index.js +427 -58
- package/dist/cli/index.js +1615 -384
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +426 -57
- package/dist/factories/index.d.ts +2 -2
- package/dist/factories/index.js +426 -57
- package/dist/{index-BPEVN_DY.d.ts → index-CzYZg44D.d.ts} +32 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +464 -62
- package/dist/interfaces/index.d.ts +1 -1
- package/dist/kinship-translator/index.d.ts +2 -2
- package/dist/kinship-translator/index.js +426 -57
- package/dist/place-parser-CJ3EbFmb.d.ts +40 -0
- package/dist/{place-translator-CRiaOO9v.d.ts → place-translator-Ci5rEY6p.d.ts} +4 -2
- package/dist/structures/index.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +462 -60
- package/package.json +1 -1
- package/dist/place-parser-CM0TJFj8.d.ts +0 -37
package/README.md
CHANGED
|
@@ -109,6 +109,45 @@ gedcom-parser show family.ged @I123@ --json
|
|
|
109
109
|
gedcom-parser show family.ged @I123@ --format markdown
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
+
#### `get` - Get a value from a GEDCOM record
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
gedcom-parser get <file> <id> [options]
|
|
116
|
+
|
|
117
|
+
# Get a specific value by path
|
|
118
|
+
gedcom-parser get family.ged @I123@ --path "BIRT.DATE"
|
|
119
|
+
|
|
120
|
+
# Get birth place
|
|
121
|
+
gedcom-parser get family.ged @I123@ --path "BIRT.PLAC"
|
|
122
|
+
|
|
123
|
+
# Get full record as JSON
|
|
124
|
+
gedcom-parser get family.ged @I123@ --json
|
|
125
|
+
|
|
126
|
+
# Get raw value only
|
|
127
|
+
gedcom-parser get family.ged @I123@ --path "NAME" --raw
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
#### `open` - Interactive REPL mode
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
gedcom-parser open <file>
|
|
134
|
+
|
|
135
|
+
# Open a GEDCOM file in interactive mode
|
|
136
|
+
gedcom-parser open family.ged
|
|
137
|
+
|
|
138
|
+
# Once in REPL, you can use commands like:
|
|
139
|
+
# - stats : Show statistics
|
|
140
|
+
# - find <query> : Search for individuals
|
|
141
|
+
# - select <n> : Select an individual from search results
|
|
142
|
+
# - show : Show details of selected individual
|
|
143
|
+
# - get --path <p> : Get a value from selected individual
|
|
144
|
+
# - relatives [opts] : Get ancestors/descendants of selected individual
|
|
145
|
+
# - validate [opts] : Validate the GEDCOM file
|
|
146
|
+
# - clear : Clear screen
|
|
147
|
+
# - help : Show available commands
|
|
148
|
+
# - exit : Exit REPL
|
|
149
|
+
```
|
|
150
|
+
|
|
112
151
|
#### `validate` - Validate GEDCOM file
|
|
113
152
|
|
|
114
153
|
```bash
|
|
@@ -208,6 +247,9 @@ gedcom-parser find family.ged --surname Smith --birth-after 1900
|
|
|
208
247
|
# Show detailed information about an individual
|
|
209
248
|
gedcom-parser show family.ged @I123@
|
|
210
249
|
|
|
250
|
+
# Get specific value from a record
|
|
251
|
+
gedcom-parser get family.ged @I123@ --path "BIRT.DATE"
|
|
252
|
+
|
|
211
253
|
# Extract all descendants of an individual
|
|
212
254
|
gedcom-parser relatives family.ged @I123@ --descendants --output descendants.ged
|
|
213
255
|
|
|
@@ -216,6 +258,9 @@ gedcom-parser stats family.ged --json > stats.json
|
|
|
216
258
|
|
|
217
259
|
# Validate and check for errors
|
|
218
260
|
gedcom-parser validate family.ged
|
|
261
|
+
|
|
262
|
+
# Open interactive REPL mode
|
|
263
|
+
gedcom-parser open family.ged
|
|
219
264
|
```
|
|
220
265
|
|
|
221
266
|
## Factory Providers
|
package/dist/classes/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a as Common, b as CommonDate, c as CommonName, d as CommonNote, h as CustomTags, E as Existed, F as Fam, j as FamType, k as Families, l as FamilySearchMatch, m as FamilySearchSource, G as GedCom, p as GedComType, q as GenealogyMember, s as GenerationIndiType, t as GenerationSpouseType, a8 as Indi, a9 as IndiGenealogy, aa as IndiGenealogyGenerations, ab as IndiGenealogyResult, ad as IndiMarker, ae as IndiTree, af as IndiType, ag as Individuals, ak as List, am as MemberMain, an as MemberSide, ar as NonNullIndiGenealogyResult, at as Obje, av as ObjeType, aw as Objects, aB as Path, aC as PathItem, aH as ProfilePicture, aI as ProxyOriginal, aJ as Queue, aK as QueueItem, aN as ReducedPath, aP as Repo, aR as RepoType, aS as Repositories, aV as Sour, aX as SourType, aY as Sources, a_ as Subm, b0 as SubmType, b1 as Submitters, b4 as TreeMember, b6 as createCommon, b7 as createCommonDate, b8 as createCommonName, b9 as createCommonNote, ba as createFam, bb as createGedCom, bc as createIndi, bd as createObje, be as createProxy, bf as createRepo, bg as createSour, bh as createSubm, bn as getListTag, bp as getValidKey, bq as getValidKeys, br as getValidTag, bs as idGetter, bu as isCommonDate, bv as isGedcomString, bw as isId, by as isOnlyMainProp, bA as isValidKey, bB as mergeGedcoms, bF as validateGedcomContent } from '../index-CzYZg44D.js';
|
|
2
2
|
import 'date-fns';
|