{"_id":"@danyk2099/x2js","_rev":"1-0b137b2e787e67e0b838d031d2505265","name":"@danyk2099/x2js","dist-tags":{"latest":"3.4.2"},"versions":{"3.4.2":{"name":"@danyk2099/x2js","version":"3.4.2","description":"Transforms between XML string and JavaScript object trees.","main":"x2js.js","types":"x2js.d.ts","dependencies":{"@xmldom/xmldom":"^0.7.4"},"devDependencies":{"eslint":"^4.18.2","eslint-config-axinom":"^1.0.3","karma":"^6.2.0","karma-chrome-launcher":"^2.0.0","karma-firefox-launcher":"^1.0.0","karma-ie-launcher":"^1.0.0","karma-qunit":"^1.2.0","qunit-cli":"^0.2.0","qunitjs":"^2.4.1","rimraf":"^2.6.3","uglify-js":"^3.4.9"},"scripts":{"travistest":"npx karma start --single-run --browsers Firefox && npx qunit-cli all_tests.js && npx eslint --env qunit,node --no-eslintrc --config ./node_modules/eslint-config-axinom/index.js *.js","test":"karma start --single-run && npx qunit-cli all_tests.js && npx eslint --env qunit,node --no-eslintrc --config ./node_modules/eslint-config-axinom/index.js *.js","prepublish":"rimraf dist && mkdir dist && npx uglifyjs x2js.js -o dist/x2js.min.js -c -m --source-map \"includeSources='true',url='x2js.min.js.map'\""},"repository":{"type":"git","url":"git+https://github.com/danyk2099/x2js.git"},"keywords":["xml","convert","transform","mapping","map"],"author":{"name":"Axinom"},"license":"Apache-2.0","homepage":"https://github.com/danyk2099/x2js#readme","eslintConfig":{"extends":"axinom","env":{"qunit":true,"node":true},"rules":{"indent":[2,"tab",{"SwitchCase":1}]}},"publishConfig":{"access":"public"},"gitHead":"0be6e6b78acd30cb6517795a118a7832aaa510da","bugs":{"url":"https://github.com/danyk2099/x2js/issues"},"_id":"@danyk2099/x2js@3.4.2","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-aLsCKSoqXYfumR80z8ecIE592QgFs67cZMGfoAlO7Se+gMyN61He2ewEo4QuJdN482aLcrZZjnN9XFMU4P8vLQ==","shasum":"3d955ca5753c5da7ca885eed289bc78eaa75f6a8","tarball":"https://registry.npmjs.org/@danyk2099/x2js/-/x2js-3.4.2.tgz","fileCount":19,"unpackedSize":130137,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1fLpCRA9TVsSAnZWagAAqxcP/0TmHUIA2txTZ19bfD3Y\nIMVXGYksBDHJDopgfm82fqd7ynD4HISmgOloF0oF0DVheOhgsPZMNMkSB7wY\n9lmVkjKqhrInSdc6xnUcf5YsLRo2jOxk4iP692nUVZer19hqgtKT88vewjAu\n1nVLG+gYXIqCoOfsNTUvvjbZJ5pY+ZaCUNB/Zz+/j7UofDEmTxleptY6ueI3\nzyUYcWrfhE+xilkTOghrWXypYHG9kicYJBAIRbpeNFbwQzFF7f4OgBRrMC74\nsYAJBVkQzoadFZqS/hqatS/3ogiFHrBrzsy7gruNAIdmiaNpUFVhwy3P9l/4\ndm1Oe4ms0QdV4QH396+cyl2v5CDtkRPdAn4qSDgNJ5pSEyQSOBhMUYHxNZwa\nUvuC7xW1T2n+KrOkEtdofSIOnh64lcM4UeKQRZLErolApPiUuHvUJBfK7BUH\nh6m+vVo4FMisoBboEdG8HmXitgQT5H98pb684Q1wXYQK/8Ugc0u31Ogr6qr4\nhjqLb1/ud2pJdkr4qXoATXMbwW8QSgQjxHv1IXb3i6KcSMYOfe8MJDn+xn2V\nHicdhLCTF8dGNQdufCqBmNPTkqwiWf+OSoiB6eP1YbbTpWe884hjjG30hq/Q\nWvysBb8QEo6WO/d9q1qyBy3o+TR3eqadcD9Q3RZ2Ww5vvz1Pdwd+tZ8uDKSC\neTrU\r\n=bw+r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFcDh9/YrS5rmIo8Til5Bb50ZZ/dwLWGDPximiM1oTvAAiEAqe9KEDGpmuY5Cryd8ufO9ZART/jN6VVU03J4szp3zL8="}]},"_npmUser":{"name":"danyk2099","email":"dany_c@hotmail.com"},"directories":{},"maintainers":[{"name":"danyk2099","email":"dany_c@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/x2js_3.4.2_1641411305309_0.0994929289612958"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-05T19:35:05.259Z","3.4.2":"2022-01-05T19:35:05.490Z","modified":"2022-04-05T02:43:11.535Z"},"maintainers":[{"name":"danyk2099","email":"dany_c@hotmail.com"}],"description":"Transforms between XML string and JavaScript object trees.","homepage":"https://github.com/danyk2099/x2js#readme","keywords":["xml","convert","transform","mapping","map"],"repository":{"type":"git","url":"git+https://github.com/danyk2099/x2js.git"},"author":{"name":"Axinom"},"bugs":{"url":"https://github.com/danyk2099/x2js/issues"},"license":"Apache-2.0","readme":"# x2js\r\n\r\nThis is a library that converts between XML and JavaScript objects.\r\nThe conversion is not necessarily lossless but it is very convenient.\r\n\r\n[![npm version](https://badge.fury.io/js/x2js.svg)](https://badge.fury.io/js/x2js)\r\n\r\nmaster | development\r\n------ | -----------\r\n[![Build Status](https://travis-ci.org/x2js/x2js.svg?branch=master)](https://travis-ci.org/x2js/x2js) | [![Build Status](https://travis-ci.org/x2js/x2js.svg?branch=development)](https://travis-ci.org/x2js/x2js)\r\n\r\n# Integration\r\n\r\nThe code is all contained within the `x2js.js` file, so you can include it directly\r\nvia a script tag. It will create `window.X2JS`, which is a constructor that can be\r\nused to create instances of the converter, providing an optional configuration object.\r\n\r\nIn a Node app, `require(\"x2js\")` will give you the constructor that you can use the same way.\r\n\r\nLoading via AMD-capable loaders (e.g. require.js) is also supported and works equivalently.\r\n\r\nThe `xmldom` package is a dependency but it is only used under Node, as in browsers the browser DOM is used.\r\n\r\n# Quick start\r\n\r\n```js\r\nvar x2js = new X2JS();\r\nvar document = x2js.xml2js(xml);\r\n\r\nconsole.log(document.MyRootElement.ElementX[1].toString());\r\n\r\nvar xml = x2js.js2xml(document);\r\nconsole.log(xml);\r\n```\r\n\r\nSee the type definitions within `x2js.d.ts` for information about what configuration options you can pass.\r\n\r\n# Automated tests\r\n\r\nA set of QUnit test cases are part of the project and act as the primary usage examples.\r\n\r\nRun `karma start --single run` to test with Chrome, Firefox and IE.\r\nRun `node_modules\\.bin\\qunit-cli all_tests.js` to test with the Node runtime.\r\nRun `npm test` to execute both sets of tests.\r\n\r\nTravis CI uses `npm travistest` to run tests using Firefox via Karma and Node.\r\n\r\n# Contributing\r\n\r\nContributions are welcome! To ensure speedy merges, please:\r\n\r\n* base any pull requests on the **development** branch.\r\n* ensure that the code passes ESLint validation with the included ruleset.\r\n","readmeFilename":"README.md"}