UNPKG

eadparser

Version:

Parses ead files to JSON.

29 lines (23 loc) 619 B
Takes an EAD XML file as an argument and produces a JSON object. `npm install` `const eadParser = require('eadParser')` `eadParser.parseXml(<XML FILE URL>).then((result) => { console.log(result });` Produces a highly-opinionated JSON object representing the EAD. The JSON object looks like this: ``` { _id: '', summaryInformation: {}, biographicalHistoricalNote: {}, scopeAndContent: {}, arrangementOfMaterials: {}, administrativeInformation: {}, relatedMaterials: {}, controlledAccessHeadings: {}, generalNote: {}, physicalCharacteristics: {}, collectionInventory: {}, atFindingAid: ''; modifiedDate = ''; } ```