@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 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
@@ -1,2 +1,2 @@
1
- export { ao as Common, az as CommonDate, aR as CommonName, aT as CommonNote, an as CustomTags, am as Existed, aC as Fam, aj as FamType, aE as Families, aL as FamilySearchMatch, aM as FamilySearchSource, aF as GedCom, ak as GedComType, a3 as GenealogyMember, aa as GenerationIndiType, a9 as GenerationSpouseType, aK as Indi, a5 as IndiGenealogy, ab as IndiGenealogyGenerations, ac as IndiGenealogyResult, a6 as IndiMarker, a4 as IndiTree, a1 as IndiType, aP as Individuals, aQ as List, a8 as MemberMain, a7 as MemberSide, ad as NonNullIndiGenealogyResult, aV as Obje, al as ObjeType, aX as Objects, af as Path, ae as PathItem, aN as ProfilePicture, Z as ProxyOriginal, ai as Queue, ah as QueueItem, ag as ReducedPath, aY as Repo, $ as RepoType, a_ as Repositories, a$ as Sour, _ as SourType, b1 as Sources, b2 as Subm, a0 as SubmType, b4 as Submitters, a2 as TreeMember, aq as createCommon, aA as createCommonDate, aS as createCommonName, aU as createCommonNote, aD as createFam, aG as createGedCom, aO as createIndi, aW as createObje, ap as createProxy, aZ as createRepo, b0 as createSour, b3 as createSubm, av as getListTag, aw as getValidKey, at as getValidKeys, au as getValidTag, ay as idGetter, aB as isCommonDate, aH as isGedcomString, ax as isId, ar as isOnlyMainProp, as as isValidKey, aJ as mergeGedcoms, aI as validateGedcomContent } from '../index-BPEVN_DY.js';
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';