0.2.0 • Published 3 years ago

@ellis-project/congress-xml v0.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

@ellis/congress-xml

XML to HTML converter for HouseXML and CatoXML

This is a port of the Python govtrack/congressxml for NodeJS which only depends on a local fork of the elementtree library with an xml element tail fix.

Installation

npm i @ellis-project/congress-xml

Usage

import fs from 'fs'
import CongressXML from '@ellis-project/congress-xml'

const xml = fs.readFileSync(/* some-test.xml */).toString()
const html = CongressXML.convert_xml(xml)

Enhancements

Planned enhancements include optional XML -> Custom Element tag name mappings.

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago