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'
 }

Readme

Keywords

Package Sidebar

Install

npm i j2x

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

14.5 kB

Total Files

4

Last publish

Collaborators

  • carrynie