j2x

1.0.1 • Public • Published

Install

 $ npm i j2x -D

Import

 import j2x from "j2x"

DEMO

 import j2x from "j2x"

 let jsonObj = {
     someKey: 'example'
 }

 let xmlStr = j2x.json2xml(jsonObj)

 xmlStr = `<someKey><![CDATA[example]]></someKey>`
 import j2x from "j2x"

 let xmlStr = `<someKey><![CDATA[example]]></someKey>`

 let jsonObj = j2x.xml2json(xmlStr)

 jsonObj = {
     someKey: 'example'
 }

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2
  • 1.0.0
    1

Package Sidebar

Install

npm i j2x

Weekly Downloads

3

Version

1.0.1

License

ISC

Unpacked Size

14.5 kB

Total Files

4

Last publish

Collaborators

  • carrynie