{"_id":"xmldom-format","_rev":"3-1dec3e5c32aa236ab913c2b4e6895fce","name":"xmldom-format","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"xmldom-format","version":"1.0.0","keywords":["w3c","dom","xml","format","serializer","prettier","XMLSerializer","xmldom"],"author":{"name":"AnWeber"},"license":"MIT","_id":"xmldom-format@1.0.0","maintainers":[{"name":"weber.andreas","email":"weber.andreas@gmail.com"}],"homepage":"https://github.com/AnWeber/xmldom-format#readme","bugs":{"url":"https://github.com/AnWeber/xmldom-format/issues"},"dist":{"shasum":"783d6d7d7268692391de689e4aa153e5c67a0356","tarball":"https://registry.npmjs.org/xmldom-format/-/xmldom-format-1.0.0.tgz","fileCount":34,"integrity":"sha512-aFb4DUJoWmaB/t4zeK+ejo1Bpn25kkBRg5+8NmeEoxfjDvbU/ucg3FP2ess6OD5NqmVFh3WWiY681RYqJmoV0A==","signatures":[{"sig":"MEQCIFcJBLchxR017jOkOLFR/PEW4lYDvrDErelcOSYIChYsAiBLattDebLHLwc8Mvt7kw/5fGGRLJxjOFbqISYuimKYgQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40031,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjogpgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqYcQ//Uy790ZWVAgDQb5k4c03hYBrxykJtzMhuGSrzc3r3rSrLP1d/\r\nWVxoU7U+9YuUdje3u/Y1NJ3Jdwi6+9cpDKtTwh230OfR4Yezk98c9yAdD9s4\r\nByKh5MjsRxGsga08VhyFKxgnEE+8UvMwbuX5qkYtOW4AfjLAQDYjbCENJVu4\r\n2yzxQWp0UrXHpZdg+20ERVPTcv+4gpxXP73WaqWaqc8o52t68UT1KMSWsYU8\r\njCfKcEczK2O5jzR9xp4bCOwvxW6K47eg4nvpj69ihTKBLK+DD2huwtLhAPvC\r\n7i7/A+pCoF744VUG6s5rLdNNwpuHyUMDIlaITCaDuUfTHsPEI4cZXQK8arZE\r\nEGCj182kbMA0p4WBO27zAHqXvz2jp30LZRUtIVaP/3Q8iGBimaPBfAYBEDFg\r\nTHMisFLQ8n/k6D8+2D0/XVKD+0er3Hy0V4Xn1ubSuui4Ti4ScC+9ZYL/hKMG\r\nrxxZ7Rmhh2gTwJLumjYScqfRgeFVw8j/m5NwBLRT0oWHYntKGzjCLiaodMMq\r\n6lUKKiBpizYGpDKrhH1Cuhj9tysKY4NZZoAGdn+KHnTMMWVmupdEQ+bLxVA0\r\na6xQwK98jNNOdYRF+NHNcUVr6Fx2/gVqojFm/LFVfhj1/BtgVp87iKEptMr4\r\ni604j2J9pA+2BJtRWzAN88UXPblfJYNSYWI=\r\n=dATw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"6b2c459ff59d825db2b14334f409c210c6562f29","scripts":{"tsc":"tsc --declaration --emitDeclarationOnly","lint":"npm run format && npm run eslint && npm run lockfile-lint","test":"jest","watch":"concurrently \"npm run esbuild -- --watch\" \"npm run tsc -- --watch\"","eslint":"eslint src --ext ts","format":"prettier --write --parser typescript \"src/**/*.ts?(x)\"","compile":"npm run esbuild -- --minify && npm run tsc","esbuild":"esbuild ./src/index.ts --bundle --outdir=dist/ --sourcemap --platform=node --format=cjs","prepack":"npm run compile","prepare":"husky install","tsc-watch":"tsc --watch --project tsconfig.build.json","lockfile-lint":"lockfile-lint --path package-lock.json --validate-https --allowed-hosts npm --validate-checksum --validate-integrity"},"_npmUser":{"name":"weber.andreas","email":"weber.andreas@gmail.com"},"repository":{"url":"git+https://github.com/AnWeber/xmldom-format.git","type":"git"},"_npmVersion":"8.19.2","description":"format xml using @xmldom/xmldom","directories":{},"lint-staged":{"*.js":["prettier --write"],"*.ts?(x)":["eslint --cache --fix","prettier --parser=typescript --write"]},"_nodeVersion":"16.18.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.3.1","husky":"^8.0.2","eslint":"^8.30.0","esbuild":"^0.16.9","prettier":"^2.8.1","typescript":"^4.9.4","@types/jest":"^29.2.4","lint-staged":"^13.1.0","concurrently":"^7.6.0","lockfile-lint":"^4.9.6","@xmldom/xmldom":"^0.8.6","eslint-plugin-node":"^11.1.0","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.47.0","@typescript-eslint/eslint-plugin":"^5.47.0","@trivago/prettier-plugin-sort-imports":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/xmldom-format_1.0.0_1671563872004_0.6793976356648777","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"xmldom-format","version":"1.1.0","keywords":["w3c","dom","xml","format","serializer","prettier","XMLSerializer","xmldom"],"author":{"name":"AnWeber"},"license":"MIT","_id":"xmldom-format@1.1.0","maintainers":[{"name":"weber.andreas","email":"weber.andreas@gmail.com"}],"homepage":"https://github.com/AnWeber/xmldom-format#readme","bugs":{"url":"https://github.com/AnWeber/xmldom-format/issues"},"dist":{"shasum":"eae28e9f42860960727664ae5271f26ac0a12e67","tarball":"https://registry.npmjs.org/xmldom-format/-/xmldom-format-1.1.0.tgz","fileCount":34,"integrity":"sha512-1T/5vuZXxVrf13fUpuWbLPbEx01l5jioss0JkE/m2U/AWNiTKqnmf1VYnpcD7PU+Lrk+AbrVuRcsH1WZ75A34Q==","signatures":[{"sig":"MEQCIFmjRb3nA8717Ev1BL2JfP9FPFjDSL9Vh0H7AgHgWN1qAiBE+LxYCZ9dgOy0sxTaR7mUYFE4pWhsL8+yTYOMcg4AcQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40497,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjsEM1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmplfQ//WIxBGI5rAGTrwvH6gx8h3SNQCKcwajb1X/BqON+e9vqen5+e\r\nqhkjv1PRC6E+dqnmF5Kqi2+tzd2l1lYgyCZEL+VMdL4Uz84t9bYcwemvwuDc\r\nNWQTNeCPKn3V6bJF/+/aote4nvVcMXB1Z2ne6HUjBHFMG2NKTrpZMVcy2FdK\r\n4ivIrtt7Q6cvkhD307rlSC5yvQhOV1P3C48rCZQ+LqIim/F2rTTAixoBwrRE\r\nTgS6e1sgJzUplyGMaPZuOehyt+5tmOE84dVDqvhenLMEn6Zh4bmNTdbWKUwL\r\nEfi/Lg7Ib2khDhxlYAf9NbW2SyDrmKcAW5UUugXIR+bC/aJG0vJAu2TM1aNI\r\nA9Lrw5XJLlmq3ssO7kl5MAC00K7FDZbIQMeWK0jPM14orSYN7SnaJLov/Ncv\r\n945xS2U6NGsSsfM8ifTlIgYpLjPABsaWZxojn5PcQ6/2FM8C0mt+3IpF0tAi\r\nZgZib0Kgel8JOXaLbqOdqrKJWvvuW1yUap6+QqdV0apTnKXPqXq0Rzg+l2Gi\r\nn8HkqBBWo029Hfy46ZumZXdViZO7OXhwn787GCWHHwXeUGV+CALtuWg6qOFZ\r\nAXUEOvDun4NaYVfMIqZn3KSx52WNQmAhyS50Mm+QXpSaXQl0GC8K+yJXaJT1\r\nHbpV7db7jjMLs2zrh/9hh3gFSEbA5p8FYxI=\r\n=tOxw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"bc8dafe33a19a8e9b6ec7117ae22252be51a9c27","scripts":{"tsc":"tsc --declaration --emitDeclarationOnly","lint":"npm run format && npm run eslint && npm run lockfile-lint","test":"jest","watch":"concurrently \"npm run esbuild -- --watch\" \"npm run tsc -- --watch\"","eslint":"eslint src --ext ts","format":"prettier --write --parser typescript \"src/**/*.ts?(x)\"","compile":"npm run esbuild -- --minify && npm run tsc","esbuild":"esbuild ./src/index.ts --bundle --outdir=dist/ --sourcemap --platform=node --format=cjs","prepack":"npm run compile","prepare":"husky install","tsc-watch":"tsc --watch --project tsconfig.build.json","lockfile-lint":"lockfile-lint --path package-lock.json --validate-https --allowed-hosts npm --validate-checksum --validate-integrity"},"_npmUser":{"name":"weber.andreas","email":"weber.andreas@gmail.com"},"repository":{"url":"git+https://github.com/AnWeber/xmldom-format.git","type":"git"},"_npmVersion":"8.19.2","description":"format xml using @xmldom/xmldom","directories":{},"lint-staged":{"*.js":["prettier --write"],"*.ts?(x)":["eslint --cache --fix","prettier --parser=typescript --write"]},"_nodeVersion":"16.18.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.3.1","husky":"^8.0.2","eslint":"^8.31.0","esbuild":"^0.16.12","prettier":"^2.8.1","typescript":"^4.9.4","@types/jest":"^29.2.5","lint-staged":"^13.1.0","concurrently":"^7.6.0","lockfile-lint":"^4.10.0","@xmldom/xmldom":"^0.8.6","eslint-plugin-node":"^11.1.0","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.47.1","@typescript-eslint/eslint-plugin":"^5.47.1","@trivago/prettier-plugin-sort-imports":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/xmldom-format_1.1.0_1672495925659_0.6629518675154142","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"xmldom-format","version":"1.1.1","keywords":["w3c","dom","xml","format","serializer","prettier","XMLSerializer","xmldom"],"author":{"name":"AnWeber"},"license":"MIT","_id":"xmldom-format@1.1.1","maintainers":[{"name":"weber.andreas","email":"weber.andreas@gmail.com"}],"homepage":"https://github.com/AnWeber/xmldom-format#readme","bugs":{"url":"https://github.com/AnWeber/xmldom-format/issues"},"dist":{"shasum":"484ab1b088dfcae49ec3fb095839b1bceb89b03a","tarball":"https://registry.npmjs.org/xmldom-format/-/xmldom-format-1.1.1.tgz","fileCount":34,"integrity":"sha512-1nrF7EjSnF2eXsgSWdotcMuESYtUvhWWYPSFkHjJNTKRPL94rdEkhk14vMui/ghYIipjL0qKmVornp5iVTf6PA==","signatures":[{"sig":"MEUCIQD8V9IwujwBNBUZreB3J2mKZ/OHD20tgeIBPUwGQCACJQIgX5+u41eeAeykKAtcB1gZ1RyEdXMPqGSTEcDv6EjWkjo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjva/lACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqSmRAAoyEzwYWdB70UCWrJq7updobjQzL3JQ8qWnnYbpcheKqGvbD1\r\nwUwY4malhksdKH/oOzpgUXU/oBHrchujECUxWlwGFGo1TJkj2ErjQafjthnA\r\nFeCnZUOPmg8PtHGvfb8X4LdxcXbZjwwWWWjkppu0ewPI3e1QXzkV0KlyaIJx\r\nJsPSFxwKLUhQQqP8RLAR8t8ddtop3s9YhigcphG8dCK7mImJg78EBy/uYZVi\r\nSukecAvjyDIKs5ZfWa/w/OPzgygJl4aGNqk4H76UVcJaRCCD7+G+RYnAazVs\r\n3PZjJt2AqIRiq9qGfubz4lM9k0Ts9TiL7tJfSweMm0YePhPi+P6Iql/NR2aU\r\na6LsSf2ReuUHumcwuxnHddPCqw9bLb477qcUCQDb7LqjcEd3jEQhqmLceBn8\r\nsGqbqkiZd52pi9oKDK7cG314zxVrS+A+qLt8KlmRTegv9yDVdhHAHGplvfEM\r\nQKkOK2TyHU/uRhy7f+b6bVvPj9U4ilAvyXPHpxK/waBKltoVQKd5a0AxnSoC\r\nBxihs4rSNy7fiWKkpCDJQG4tRLomIcKjUUGQkHcAiQwRrFZHNBVBWzQn56g1\r\nQojmqFLM2bOjz4ueYUfDrATOoxhRdZtvpUQtb6vCHu1kZbl00bBINX0TyDeO\r\nlBS/qrKmVIi2goQz5lKyJbtdKPKJsJUdhPs=\r\n=PWJ0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"a789a8d836542b8abba0906df9b0190ec36fc9d6","scripts":{"tsc":"tsc --declaration --emitDeclarationOnly","lint":"npm run format && npm run eslint && npm run lockfile-lint","test":"jest","watch":"concurrently \"npm run esbuild -- --watch\" \"npm run tsc -- --watch\"","eslint":"eslint src --ext ts","format":"prettier --write --parser typescript \"src/**/*.ts?(x)\"","compile":"npm run esbuild -- --minify && npm run tsc","esbuild":"esbuild ./src/index.ts --bundle --outdir=dist/ --sourcemap --platform=node --format=cjs","prepack":"npm run compile","prepare":"husky install","tsc-watch":"tsc --watch --project tsconfig.build.json","lockfile-lint":"lockfile-lint --path package-lock.json --validate-https --allowed-hosts npm --validate-checksum --validate-integrity"},"_npmUser":{"name":"weber.andreas","email":"weber.andreas@gmail.com"},"repository":{"url":"git+https://github.com/AnWeber/xmldom-format.git","type":"git"},"_npmVersion":"8.19.2","description":"format xml using @xmldom/xmldom","directories":{},"lint-staged":{"*.js":["prettier --write"],"*.ts?(x)":["eslint --cache --fix","prettier --parser=typescript --write"]},"_nodeVersion":"16.18.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.3.1","husky":"^8.0.3","eslint":"^8.31.0","esbuild":"^0.16.16","prettier":"^2.8.2","typescript":"^4.9.4","@types/jest":"^29.2.5","lint-staged":"^13.1.0","concurrently":"^7.6.0","lockfile-lint":"^4.10.0","@xmldom/xmldom":"^0.8.6","eslint-plugin-node":"^11.1.0","eslint-config-prettier":"^8.6.0","@typescript-eslint/parser":"^5.48.1","@typescript-eslint/eslint-plugin":"^5.48.1","@trivago/prettier-plugin-sort-imports":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/xmldom-format_1.1.1_1673375717547_0.03556709751870435","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"xmldom-format","version":"2.0.0","description":"format xml using @xmldom/xmldom","main":"./dist/index.js","types":"./dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/AnWeber/xmldom-format.git"},"keywords":["w3c","dom","xml","format","serializer","prettier","XMLSerializer","xmldom"],"author":{"name":"AnWeber"},"license":"MIT","bugs":{"url":"https://github.com/AnWeber/xmldom-format/issues"},"scripts":{"format":"prettier --write --parser typescript \"src/**/*.ts?(x)\"","prepack":"npm run build","esbuild":"esbuild ./src/index.ts --bundle --outdir=dist/ --sourcemap --platform=node --format=cjs","tsc":"tsc --declaration --emitDeclarationOnly","build":"npm run esbuild -- --minify && npm run tsc","tsc-watch":"tsc --watch --project tsconfig.build.json","watch":"concurrently \"npm run esbuild -- --watch\" \"npm run tsc -- --watch\"","lockfile-lint":"lockfile-lint --path package-lock.json --validate-https --allowed-hosts npm --validate-checksum --validate-integrity","eslint":"eslint src --ext ts","lint":"npm run format && npm run eslint && npm run lockfile-lint","prepare":"husky install","test":"jest"},"lint-staged":{"*.js":["prettier --write"],"*.ts?(x)":["eslint --cache --fix","prettier --parser=typescript --write"]},"homepage":"https://github.com/AnWeber/xmldom-format#readme","peerDependencies":{"@xmldom/xmldom":"^0.9.5"},"devDependencies":{"@types/jest":"^29.5.14","@typescript-eslint/eslint-plugin":"^8.11.0","@typescript-eslint/parser":"^8.11.0","concurrently":"^9.0.1","esbuild":"^0.24.0","eslint-config-prettier":"^9.1.0","eslint-plugin-node":"^11.1.0","eslint":"^8.57.1","husky":"^9.1.6","jest":"^29.7.0","lint-staged":"^15.2.10","lockfile-lint":"^4.14.0","prettier":"^3.3.3","typescript":"^5.6.3"},"_id":"xmldom-format@2.0.0","gitHead":"cce203585b16d8c400a1af9573905033a774b71e","_nodeVersion":"22.10.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-1zDf0QyGmROs0c/X4ttFMkPeBV+SUYTcLgUj2kpDNKw2g0Ta3dZtFWWYuJR/hQNeUJH6/M/Q9VxOWJRrT0qRug==","shasum":"319c09fe23caacda59bd0fa274b97f61d3760e80","tarball":"https://registry.npmjs.org/xmldom-format/-/xmldom-format-2.0.0.tgz","fileCount":34,"unpackedSize":40306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAfsvtjPY+MQxLO+CAn23paAOZyXkTmewF4S0anCx2vXAiEA8vETCscTNvL+Fp2XIOZ8hlEIMc2gERFDAypc7MrwiKI="}]},"_npmUser":{"name":"weber.andreas","email":"weber.andreas@gmail.com"},"directories":{},"maintainers":[{"name":"weber.andreas","email":"weber.andreas@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xmldom-format_2.0.0_1730110596165_0.36783752056648966"},"_hasShrinkwrap":false}},"time":{"created":"2022-12-20T19:17:51.909Z","modified":"2024-10-28T10:16:36.494Z","1.0.0":"2022-12-20T19:17:52.194Z","1.1.0":"2022-12-31T14:12:05.821Z","1.1.1":"2023-01-10T18:35:17.721Z","2.0.0":"2024-10-28T10:16:36.327Z"},"bugs":{"url":"https://github.com/AnWeber/xmldom-format/issues"},"author":{"name":"AnWeber"},"license":"MIT","homepage":"https://github.com/AnWeber/xmldom-format#readme","keywords":["w3c","dom","xml","format","serializer","prettier","XMLSerializer","xmldom"],"repository":{"type":"git","url":"git+https://github.com/AnWeber/xmldom-format.git"},"description":"format xml using @xmldom/xmldom","maintainers":[{"name":"weber.andreas","email":"weber.andreas@gmail.com"}],"readme":"# xmldom-format\n\n[XMLSerializer](https://developer.mozilla.org/en-US/docs/Web/API/XMLSerializer) to serialize and format Document  \n\n## Installation\n\n```shell\nnpm install xmldom-format\n```\n\n## Usage\n\n### XMLSerializer\n\nuse `XMLSerializer.serializeToString(rootNode)` to serialize Document without FormatOptions\n\n```js\n  import { XMLSerializer } from \"xmldom-format\";\n  const rootNode = new DOMParser().parse(`<html><body>Hello<br/>World</body></html>`);\n  const xmlSerializer = new XMLSerializer();\n  console.info(xmlSerializer.serializeToString(rootNode)); // <html><body>Hello<br/>World</body></html>\n```\n\n\n### formatXml\n\nuse `formatXml` to serialize and format Document with [FormatOptions](./src/models/formatOptions.ts)\n\n```js\n  import { formatXml } from \"xmldom-format\";\n  const rootNode = new DOMParser().parse(`<html><body>Hello<br/>World</body></html>`);\n  console.info(formatXml(rootNode, { useWhitespaceInAutoClosingNode: true})); // <html><body>Hello<br />World</body></html>\n```\n\n## License\n\n[MIT License](LICENSE)\n\n## Change Log\n\n[CHANGELOG](CHANGELOG.md)\n","readmeFilename":"README.md"}