npm install hyper-xml
const h =const one =
one will look like this:
type: 'element'name: 'one'attributes: a1: 'v1'children:type: 'element'name: 'two'children:type: 'element'name: 'three'attributes: a2: 'v2' a3: 'v3'type: 'text'value: 'four'
If you have a question or have difficulties using
hyper-xml, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.