{"_id":"xml-but-prettier","_rev":"5-e49d2e579560b0f795cb3b98d50d5fb0","name":"xml-but-prettier","description":"Beautifies XML documents by putting each tag and text node on their own line and correctly indents everything","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"xml-but-prettier","version":"1.0.0","title":"XML Beautifier","description":"Beautifies XML documents by putting each tag and text node on their own line and correctly indents everything","main":"dist/index.js","scripts":{"build":"babel src --out-dir dist","prepublish":"npm run build","release":"release-it","test":"jest test"},"repository":{"type":"git","url":"git+https://github.com/shockey/xml-but-prettier.git"},"author":{"name":"Kyle Shockey","email":"kyleshockey@gmail.com"},"license":"MIT","devDependencies":{"babel-cli":"^6.4.5","babel-jest":"^21.2.0","babel-preset-es2015":"^6.3.13","jest":"^21.2.1","release-it":"^4.1.1","tape":"^4.2.2"},"dependencies":{"repeat-string":"^1.5.2"},"jest":{"testMatch":["**/test/*.js"]},"gitHead":"d2320eb5acc7a5416b7c22cee8269f3f22fa8d69","bugs":{"url":"https://github.com/shockey/xml-but-prettier/issues"},"homepage":"https://github.com/shockey/xml-but-prettier#readme","_id":"xml-but-prettier@1.0.0","_shasum":"5732975e782c83b99c358961bc1680b7c41239df","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.3","_npmUser":{"name":"kyleshockey","email":"kyle.shockey1@gmail.com"},"dist":{"shasum":"5732975e782c83b99c358961bc1680b7c41239df","tarball":"https://registry.npmjs.org/xml-but-prettier/-/xml-but-prettier-1.0.0.tgz","integrity":"sha512-pXR7c/YyVeEXm5n521OzcbLJ2P54XV8Rjo8ansfa6i/wqzai0WWDolo92hoC2P/xZrSzbovcdaITypfxkeVb6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBqc1So9215J84qezlEPaCV7msENMpLc2gHx2HY1p7zDAiBIssK5TP2OenWR1sd0kwHAja8nwXnCvNxjQfh9r+uKWA=="}]},"maintainers":[{"name":"kyleshockey","email":"kyle.shockey1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xml-but-prettier-1.0.0.tgz_1509658244606_0.5219613322988153"},"directories":{}},"1.0.1":{"name":"xml-but-prettier","version":"1.0.1","title":"XML Beautifier","description":"Beautifies XML documents by putting each tag and text node on their own line and correctly indents everything","main":"dist/index.js","scripts":{"build":"babel src --out-dir dist","prepublish":"npm run build","release":"release-it","test":"jest test"},"repository":{"type":"git","url":"git+https://github.com/shockey/xml-but-prettier.git"},"author":{"name":"Kyle Shockey","email":"kyleshockey@gmail.com"},"license":"MIT","devDependencies":{"babel-cli":"^6.4.5","babel-jest":"^21.2.0","babel-preset-es2015":"^6.3.13","jest":"^21.2.1","release-it":"^4.1.1","tape":"^4.2.2"},"dependencies":{"repeat-string":"^1.5.2"},"jest":{"testMatch":["**/test/*.js"]},"gitHead":"6d00cdbd6ffb85c4e49e629770a1add285293448","bugs":{"url":"https://github.com/shockey/xml-but-prettier/issues"},"homepage":"https://github.com/shockey/xml-but-prettier#readme","_id":"xml-but-prettier@1.0.1","_shasum":"f5a33267ed42ccd4e355c62557a5e39b01fb40f3","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.3","_npmUser":{"name":"kyleshockey","email":"kyle.shockey1@gmail.com"},"dist":{"shasum":"f5a33267ed42ccd4e355c62557a5e39b01fb40f3","tarball":"https://registry.npmjs.org/xml-but-prettier/-/xml-but-prettier-1.0.1.tgz","integrity":"sha512-C2CJaadHrZTqESlH03WOyw0oZTtoy2uEg6dSDF6YRg+9GnYNub53RRemLpnvtbHDFelxMx4LajiFsYeR6XJHgQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQrmTPSbatjS6ESigqFcbLZ3OCG2A1SnTBVkLV8yurigIhAJt26b6ggE1XfxRCKuRMFPEHpfCvxpunC9PLo0mfwHwb"}]},"maintainers":[{"name":"kyleshockey","email":"kyle.shockey1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xml-but-prettier-1.0.1.tgz_1509660390318_0.17244689585641026"},"directories":{}}},"readme":"# XML, But Prettier\n\n[![Build Status][travis-image]][travis-url]\n[![NPM version][npm-image]][npm-url]\n\n_This module is a fork of [jonathanp/xml-beautifier][upstream-github]._\n\nThis module beautifies XML documents by putting each tag and text node on their own line and correctly indenting everything.\n\nCan be used e.g. if you're using [React as a static page generator][react] and (for some reason) need the generated HTML to be more human-readable.\n\n\n## Install\n\n```\n$ npm install --save xml-beautifier\n```\n\n\n## Usage\n\nThe module's function signature is `xmlButPrettier(xml:String, options:Object)`.\n\n```js\nimport xmlButPrettier from 'xml-but-prettier';\n\nconst xml = xmlButPrettier('<div><span>foo</span></div>');\nconsole.log(xml); // => will output correctly indented elements\n```\n\n#### Options\n- `indentor`: a custom string to use for indenting things\n- `textNodesOnSameLine`: compresses text nodes onto the same line as their containing tags\n\n## License\n\nMIT.\n\n[upstream-github]: https://github.com/jonathanp/xml-beautifier\n[npm-url]: https://npmjs.org/package/xml-but-prettier\n[npm-image]: https://badge.fury.io/js/xml-but-prettier.svg\n[travis-image]: https://travis-ci.org/shockey/xml-but-prettier.svg\n[travis-url]: https://travis-ci.org/shockey/xml-but-prettier\n[react]: https://facebook.github.io/react/docs/top-level-api.html#reactdomserver.rendertostaticmarkup\n","maintainers":[{"name":"kyleshockey","email":"kyle.shockey1@gmail.com"}],"time":{"modified":"2023-04-12T22:20:26.084Z","created":"2017-11-02T21:30:44.732Z","1.0.0":"2017-11-02T21:30:44.732Z","1.0.1":"2017-11-02T22:06:30.419Z"},"homepage":"https://github.com/shockey/xml-but-prettier#readme","repository":{"type":"git","url":"git+https://github.com/shockey/xml-but-prettier.git"},"author":{"name":"Kyle Shockey","email":"kyleshockey@gmail.com"},"bugs":{"url":"https://github.com/shockey/xml-but-prettier/issues"},"license":"MIT","readmeFilename":"README.md","users":{"flumpus-dev":true}}