{"_id":"@aaxis/fast-xml-parser","_rev":"1-abb049b6dc04a1ad475ee4e7f0a6e06a","name":"@aaxis/fast-xml-parser","dist-tags":{"latest":"4.0.0-beta.6"},"versions":{"4.0.0-beta.6":{"name":"@aaxis/fast-xml-parser","version":"4.0.0-beta.6","description":"Validate XML, Parse XML, Build XML without C/C++ based libraries","main":"./src/fxp.js","scripts":{"test":"nyc --reporter=lcov --reporter=text jasmine spec/*spec.js","unit":"jasmine","coverage":"nyc report --reporter html --reporter text -t .nyc_output --report-dir .nyc_output/summary","perf":"node ./benchmark/perfTest3.js","lint":"eslint src/*.js spec/*.js","bundle":"webpack && webpack --config webpack-prod.config.js","prettier":"prettier --write src/**/*.js","checkReadiness":"publish-please --dry-run"},"repository":{"type":"git","url":"git+https://github.com/ferguson-frontend-modules/fast-xml-parser.git"},"keywords":["fast","xml","json","parser","xml2js","x2js","xml2json","js","cli","validator","validate","transformer","assert","js2xml","json2xml","html"],"author":{"name":"Amit Gupta","url":"https://amitkumargupta.work/"},"license":"MIT","devDependencies":{"@babel/core":"^7.13.10","@babel/plugin-transform-runtime":"^7.13.10","@babel/preset-env":"^7.13.10","@babel/register":"^7.13.8","babel-loader":"^8.2.2","eslint":"^8.3.0","he":"^1.2.0","jasmine":"^3.6.4","nyc":"^15.1.0","prettier":"^1.19.1","publish-please":"^5.5.2","webpack":"^5.64.4","webpack-cli":"^4.9.1"},"typings":"src/fxp.d.ts","funding":{"type":"paypal","url":"https://paypal.me/naturalintelligence"},"dependencies":{"strnum":"^1.0.5"},"gitHead":"b0e1e39bb752cd1db5779c4205c670731bcfef62","bugs":{"url":"https://github.com/ferguson-frontend-modules/fast-xml-parser/issues"},"homepage":"https://github.com/ferguson-frontend-modules/fast-xml-parser#readme","_id":"@aaxis/fast-xml-parser@4.0.0-beta.6","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-0z1LXyXVz40Zoa3e1HLaStIhqm8bYTMLAjV+G5+OfQ06+uFGNrbzYt16d+6IAx7Ef6BaQs6mbRUt2+PehyNTaw==","shasum":"77c80d300e03050d9d55a96f1d252d81d9c322a2","tarball":"https://registry.npmjs.org/@aaxis/fast-xml-parser/-/fast-xml-parser-4.0.0-beta.6.tgz","fileCount":14,"unpackedSize":75622,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhrbZUCRA9TVsSAnZWagAAafQP/1k79fB43+HWfU3FZv24\nmg33gHFWH1bLRlqrj7LYQ83X0lmlTZ6q6fE/L+dc+pqhRd1ePB+U9stKIhen\nnmDrvNz2jZ5d4P1H01QCwvQi4KC4BnO03b0++6N8zhaNtkTL+I3tGuVSqUzh\nkGekSzRTdyRtjrdso1xlKeKgzqPmamifl7kYs/1phsACqkgiU/u1UifJ2T+d\n2AaUc/TgmHj+rfxxPBFIsAhiaM0gW62qwRTGLpMG8Gj5qQrSfVlFJ1G2xzXR\nEDIZgnGx1t514hQYj5F3gO9PKCbJ2Mhy7nFxtR4F77S5YYR9gGvQXVeqQnbP\nmRiuhkJGzgMaPwuYIc4wLjD5YhyfIhoRxACY1BlK9QW5M3HGLoXpY2l5L3GS\nN0ZeyCDgYpJzz+pZ6oja5PvrHPZzyuuJ0iRFnrloyhKelv3g8n2irrLi4/e/\nNA0f7qd7SQmHIcBCJR2WZAuiJ3+2/f8i4RiGK1301ymOkmf/T6hRuU3RWqKh\nE8wETq003robjlUAm9qN7AqrBqk9ebSsjeiYiviBYzOHjlpagm7/hOy+Oyc1\nFFLLYAgyT0D8NqbWQ3uj0/cQCX2Lk0xIyAm6IWlhEzyk8opOTQOatEIasAYj\nWGY2go9PuOCeaGQydQWplfmEZuQuTqTJUv57OTfgTV73kZH60Wuc7AEVzGdN\nuSSN\r\n=n8Ho\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFpjFkBcE9bY1XVdIeyxz1a8f0uvIFrqAOm0V7Rd+zthAiEA+hM6jygYH+P//DTRL1LGbvIRDIXFKcWK+pAhRk1gfdw="}]},"_npmUser":{"name":"aaxis","email":"zacharyhou@aaxiscommerce.com"},"directories":{},"maintainers":[{"name":"aaxis","email":"zacharyhou@aaxiscommerce.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fast-xml-parser_4.0.0-beta.6_1638774355958_0.06178928071806"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-06T07:05:55.880Z","4.0.0-beta.6":"2021-12-06T07:05:56.157Z","modified":"2022-04-04T10:56:27.303Z"},"maintainers":[{"name":"aaxis","email":"zacharyhou@aaxiscommerce.com"}],"description":"Validate XML, Parse XML, Build XML without C/C++ based libraries","homepage":"https://github.com/ferguson-frontend-modules/fast-xml-parser#readme","keywords":["fast","xml","json","parser","xml2js","x2js","xml2json","js","cli","validator","validate","transformer","assert","js2xml","json2xml","html"],"repository":{"type":"git","url":"git+https://github.com/ferguson-frontend-modules/fast-xml-parser.git"},"author":{"name":"Amit Gupta","url":"https://amitkumargupta.work/"},"bugs":{"url":"https://github.com/ferguson-frontend-modules/fast-xml-parser/issues"},"license":"MIT","readme":"# [fast-xml-parser](https://www.npmjs.com/package/fast-xml-parser)\n[![Backers on Open Collective](https://opencollective.com/fast-xml-parser/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/fast-xml-parser/sponsors/badge.svg)](#sponsors) [![Known Vulnerabilities](https://snyk.io/test/github/naturalintelligence/fast-xml-parser/badge.svg)](https://snyk.io/test/github/naturalintelligence/fast-xml-parser)\n[![NPM quality][quality-image]][quality-url]\n[![Travis ci Build Status](https://travis-ci.org/NaturalIntelligence/fast-xml-parser.svg?branch=master)](https://travis-ci.org/NaturalIntelligence/fast-xml-parser)\n[![Coverage Status](https://coveralls.io/repos/github/NaturalIntelligence/fast-xml-parser/badge.svg?branch=master)](https://coveralls.io/github/NaturalIntelligence/fast-xml-parser?branch=master)\n[<img src=\"https://img.shields.io/badge/Try-me-blue.svg?colorA=FFA500&colorB=0000FF\" alt=\"Try me\"/>](https://naturalintelligence.github.io/fast-xml-parser/)\n[![NPM total downloads](https://img.shields.io/npm/dt/fast-xml-parser.svg)](https://npm.im/fast-xml-parser)\n\n[quality-image]: http://npm.packagequality.com/shield/fast-xml-parser.svg?style=flat-square\n[quality-url]: http://packagequality.com/#?package=fast-xml-parser\n\n\nValidate XML, Parse XML to JS Object, or Build XML from JS Object without C/C++ based libraries and no callback.\n\n<a href=\"https://opencollective.com/fast-xml-parser/donate\" target=\"_blank\">\n  <img src=\"https://opencollective.com/fast-xml-parser/donate/button@2x.png?color=blue\" width=200 />\n</a>\n<a href=\"https://paypal.me/naturalintelligence\"> <img src=\"static/img/support_paypal.svg\" alt=\"Stubmatic donate button\" width=\"200\"/></a>\n\nCheck [ThankYouBackers](https://github.com/NaturalIntelligence/ThankYouBackers) for our contributors\n\n## Users\n\n<a href=\"https://github.com/renovatebot/renovate\" title=\"renovate\" ><img src=\"https://avatars1.githubusercontent.com/u/38656520\" width=\"60px\" ></a>\n<a href=\"https://vmware.com/\" title=\"vmware\" > <img src=\"https://avatars0.githubusercontent.com/u/473334\" width=\"60px\" ></a>\n<a href=\"https://opensource.microsoft.com/\" title=\"microsoft\" > <img src=\"https://avatars0.githubusercontent.com/u/6154722\" width=\"60px\" ></a>\n<a href=\"http://ibm.github.io/\" title=\"IBM\" > <img src=\"https://avatars2.githubusercontent.com/u/1459110\" width=\"60px\" ></a>\n<a href=\"http://www.smartbear.com\" title=\"SmartBear Software\" > <img src=\"https://avatars2.githubusercontent.com/u/1644671\" width=\"60px\" ></a>\n<a href=\"http://nasa.github.io/\" title=\"NASA\" > <img src=\"https://avatars0.githubusercontent.com/u/848102\" width=\"60px\" ></a>\n<a href=\"https://github.com/prettier\" title=\"Prettier\" > <img src=\"https://avatars0.githubusercontent.com/u/25822731\" width=\"60px\" ></a>\n<a href=\"http://brain.js.org/\" title=\"brain.js\" > <img src=\"https://avatars2.githubusercontent.com/u/23732838\" width=\"60px\" ></a>\n<a href=\"https://github.com/aws\" title=\"AWS SDK\" > <img src=\"https://avatars.githubusercontent.com/u/2232217\" width=\"60px\" ></a>\n<a href=\"#\" title=\"NHS Connect\" > <img src=\"https://avatars3.githubusercontent.com/u/20316669\" width=\"60px\" ></a>\n<a href=\"http://www.fda.gov/\" title=\"Food and Drug Administration \" > <img src=\"https://avatars2.githubusercontent.com/u/6471964\" width=\"60px\" ></a>\n<a href=\"http://www.magento.com/\" title=\"Magento\" > <img src=\"https://avatars2.githubusercontent.com/u/168457\" width=\"60px\" ></a>\n\nCheck the list of all known users [here](./USERs.md);\n\n<small>The list of users is collected either from the list published by Github, cummunicated directly through mails/chat , or from other resources. If you feel that your name in the above list is incorrectly published or you're not the user of this library anymore then you can inform us to remove it. We'll do the necessary changes ASAP.</small>\n\n### Main Features\n\n<img align=\"right\" src=\"static/img/fxp_logo.png\" width=\"180px\" alt=\"FXP logo\"/>\n\n* Validate XML data syntactically\n* Parse XML to JS Object\n* Build XML from JS Object\n* Works with node packages, in browser, and in CLI (press try me button above for demo)\n* Faster than any pure JS implementation.\n* It can handle big files (tested up to 100mb).\n* Controlled parsing using various options\n* XML Entities, HTML entities, and DOCTYPE entites are supported.\n* unpaired tags (Eg `<br>` in HTML), stop nodes (Eg `<script>` in HTML) are supported.\n* You can restore almost same XML from JSON\n* Supports comments\n* It can preserve Order of tags in JS object\n* You can control if a single tag should be parsed into array.\n* Supports parsing of PI (Processing Instruction) tags with XML declaration tags\n* And many more other features.\n\n## How to use\n\nTo use as package dependency\n`$ npm install fast-xml-parser` \nor \n`$ yarn add fast-xml-parser`\n\nTo use as system command\n`$ npm install fast-xml-parser -g` \n\nTo use it on a **webpage** include it from a [CDN](https://cdnjs.com/libraries/fast-xml-parser)\n\n**Example**\n\nAs CLI command\n```bash\n$ fxparser some.xml\n```\n\nIn a node js project\n```js\nconst { XMLParser, XMLBuilder, XMLValidator} = require(\"../src/fxp\");\n\nconst parser = new XMLParser();\nlet jObj = parser.parse(XMLdata);\n\nconst builder = new XMLBuilder();\nconst xmlContent = builder.build(jObj);\n```\n\nIn a HTML page\n```html\n<script src=\"path/to/fxparser.js\"></script>\n:\n<script>\n  const parser = new fxparser.XMLParser();\n  parser.parse(xmlContent);\n</script>\n```\n\n### Documents\n**v3**\n* [documents](./docs/v3/docs.md)\n\n**v4**\n1. [GettingStarted.md](./docs/v4/1.GettingStarted.md)\n2.  [XML Parser](./docs/v4/2.XMLparseOptions.md)\n3.  [XML Builder](./docs/v4/3.XMLBuilder.md)\n4.  [XML Validator](./docs/v4/4.XMLValidator.md)\n5.  [Entites](./docs/5.Entities.md)\n6.  [HTML Document Parsing](./docs/6.HTMLParsing.md)\n7. [PI Tag processing](./docs/7.PITags.md)\n## Performance\n\n### XML Parser\n\n![](./docs/imgs/XMLParser_v4.png)\n\n**Large files**\n![](./docs/imgs/XMLParser_large_v4.png)\n\n### XML Builder\n\n![](./docs/imgs/XMLBuilder_v4.png)\n\n<small>negative means error</small>\n\n## Our other projects and research you must try\n\n* **[BigBit standard](https://github.com/amitguptagwl/bigbit)** : \n  * Single text encoding to replace UTF-8, UTF-16, UTF-32 and more with less memory.\n  * Single Numeric datatype alternative of integer, float, double, long, decimal and more without precision loss.\n* **[Cytorus](https://github.com/NaturalIntelligence/cytorus)**: Now be specific and flexible while running E2E tests.\n  * Run tests only for a particular User Story\n  * Run tests for a route or from a route\n  * Customizable reporting\n  * Central dashboard for better monitoring\n* **[Stubmatic](https://github.com/NaturalIntelligence/Stubmatic)** : Create fake webservices, DynamoDB or S3 servers, Manage fake/mock stub data, Or fake any HTTP(s) call.\n\n\n## Supporters\n### Contributors\n\nThis project exists thanks to [all](graphs/contributors) the people who contribute. [[Contribute](docs/CONTRIBUTING.md)].\n<!-- <a href=\"graphs/contributors\"><img src=\"https://opencollective.com/fast-xml-parser/contributors.svg?width=890&button=false\" /></a> -->\n<!--\n### Lead Maintainers\n![Amit Gupta](https://avatars1.githubusercontent.com/u/7692328?s=100&v=4)\n[![Vohmyanin Sergey Vasilevich](https://avatars3.githubusercontent.com/u/783335?s=100&v=4)](https://github.com/Delagen)\n\n### All Contributors -->\n<a href=\"graphs/contributors\"><img src=\"https://opencollective.com/fast-xml-parser/contributors.svg?width=890&button=false\" /></a>\n\n### Backers\n\nThank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/fast-xml-parser#backer)]\n\n<a href=\"https://opencollective.com/fast-xml-parser#backers\" target=\"_blank\"><img src=\"https://opencollective.com/fast-xml-parser/backers.svg?width=890\"></a>\n\n\n### Sponsors\n\n<small>[[Become a sponsor](https://opencollective.com/fast-xml-parser#sponsor)] Support this project by becoming a sponsor. Your logo will show up here with a link to your website. Please also share your detail so we can thankyou on SocialMedia.</small>\n\n<a href=\"https://opencollective.com/fast-xml-parser/sponsor/0/website\" target=\"_blank\"><img src=\"https://opencollective.com/fast-xml-parser/sponsor/0/avatar.svg\"></a>\n<a href=\"https://opencollective.com/fast-xml-parser/sponsor/1/website\" target=\"_blank\"><img src=\"https://opencollective.com/fast-xml-parser/sponsor/1/avatar.svg\"></a>\n<a href=\"https://opencollective.com/fast-xml-parser/sponsor/2/website\" target=\"_blank\"><img src=\"https://opencollective.com/fast-xml-parser/sponsor/2/avatar.svg\"></a>\n<a href=\"https://opencollective.com/fast-xml-parser/sponsor/3/website\" target=\"_blank\"><img src=\"https://opencollective.com/fast-xml-parser/sponsor/3/avatar.svg\"></a>\n<a href=\"https://opencollective.com/fast-xml-parser/sponsor/4/website\" target=\"_blank\"><img src=\"https://opencollective.com/fast-xml-parser/sponsor/4/avatar.svg\"></a>\n<a href=\"https://opencollective.com/fast-xml-parser/sponsor/5/website\" target=\"_blank\"><img src=\"https://opencollective.com/fast-xml-parser/sponsor/5/avatar.svg\"></a>\n<a href=\"https://opencollective.com/fast-xml-parser/sponsor/6/website\" target=\"_blank\"><img src=\"https://opencollective.com/fast-xml-parser/sponsor/6/avatar.svg\"></a>\n<a href=\"https://opencollective.com/fast-xml-parser/sponsor/7/website\" target=\"_blank\"><img src=\"https://opencollective.com/fast-xml-parser/sponsor/7/avatar.svg\"></a>\n<a href=\"https://opencollective.com/fast-xml-parser/sponsor/8/website\" target=\"_blank\"><img src=\"https://opencollective.com/fast-xml-parser/sponsor/8/avatar.svg\"></a>\n<a href=\"https://opencollective.com/fast-xml-parser/sponsor/9/website\" target=\"_blank\"><img src=\"https://opencollective.com/fast-xml-parser/sponsor/9/avatar.svg\"></a>\n\n# License\n* MIT License\n\n![Donate $5](static/img/donation_quote.png)","readmeFilename":"README.md"}