1.0.4 • Published 3 years ago

iotdb-xml v1.0.4

Weekly downloads
6
License
Apache-2.0
Repository
github
Last release
3 years ago

iotdb-xml

XML POP functions

Basic Usage

All the action is in xml.convert, which converts self.document into self.json

const _ = require("iotdb-helpers")
const fs = require("iotdb-fs")
const xml = require("iotdb-xml")

_.promise()
    .then(fs.read.utf8.p("document.xml"))
    .then(xml.convert)
    .make(sd => {
        console.log(JSON.stringify(sd.json, null, 2))
    })