{"name":"dom-lite","version":"22.9.0","license":"MIT","author":{"name":"Lauri Rooden","email":"lauri@rooden.ee"},"description":"A small DOM implementation","keywords":["browser","document","dom","DOMParser","XMLSerializer","litejs"],"main":"index.js","scripts":{"release":"lj release test/index.js --brief","test":"c8 lj test test/index.js --brief"},"repository":{"type":"git","url":"git://github.com/litejs/dom-lite.git"},"bugs":{"url":"https://github.com/litejs/dom-lite/issues"},"dependencies":{"selector-lite":"20.2.0"},"devDependencies":{"@litejs/cli":"22.8.0"},"litejs":{"build":"lj build --readme index.js","lint":"jshint *.js"},"jshintConfig":{"asi":true,"laxcomma":true,"maxdepth":6,"quotmark":"double"},"c8":{"check-coverage":true,"branches":100,"lines":100,"functions":100,"statements":100,"reporter":["lcov","text","html"]},"gitHead":"848354c2b84a065939a1260b97037947c521b29a","homepage":"https://github.com/litejs/dom-lite#readme","_id":"dom-lite@22.9.0","_nodeVersion":"18.9.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-glAVNR2+S29qMpNRHlz++Uu9gCPvVuFXaohf6rsjxdUfOYrtUM5wqloAGJ+/1z3DkFAncs4y1D85RGYFtoCGjg==","shasum":"bcbad6250a2b2bb1a684df1d5640648fab19e57d","tarball":"http://registry-npm.ywwl.com/dom-lite/download/dom-lite-22.9.0.tgz","fileCount":3,"unpackedSize":14678,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAOq99NoZTwz1IkcEr3UJCBDs72c7Ly4+ufs1y7TVr47AiEApE1dD+YYA3aVRb1PAYXmjuoAEMXisPZ9hD+L+jnJ98w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMfRJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrPTw/+L1LFPuV6ecAAs+gvlTrrFRoyb6ovM1U5TvB2uKiUFJOlKJt6\r\nAmtWaWOla67W/CaRRO3/0rWUocICfwgHX4iMiP1rCqrrITf8ulXWTrX3nvUk\r\njxOjA+yTbU/zilTgpZZaMN4Eo3PEjfeQam83Gl8MPWbBHtpKoNV1fQCOOrFr\r\njLVTFQRHCB20wEXuzyCHNomwLU3zl/S7wLodNTY9Fgh4V4Omgll7JNs71rsb\r\nxaB1RYIRIp22dM63Og3utPq+lhRRxQZiOleS9ibXWp2af6kUo4s7Fs1zOKGW\r\nLDmfqd1OQiUUeCDOqQbnzC94ORW+aM8qhFbQHVno30sK5wJIJiPLq5g70Bga\r\n4ejpsMF1Vvkx8mgiuLtcav5Q/WkBsKkWJG0ejvHfwU7fArmyoJxRVM5U5ATA\r\nqcEm+p+4pps4KLIcyVnmTNUCW0LZheP316TETrtG20320gLRxi8fO1s0rsE7\r\n2d622NsdNSw0ZmWy6ciH6eS3FE4FyLfEEOCGUzsTxxR4DogGnOjRnnuPDM8X\r\nXWOMgem2I18qmWJHkDgYTVsAMTC/k/1L1QNrMe4tqQfByobstpttMj1ZBUxJ\r\nAvisrnu4B+zBhRvhR1srmNGhpZvIIf5/DGrTqjE+QHNwMqeYnK9HxMyeDSG9\r\n1/fB5PWDVko/tW8tbsgrrn/UPeZc+b7ieMw=\r\n=i9a5\r\n-----END PGP SIGNATURE-----\r\n","size":4941,"noattachment":false,"key":"/dom-lite/-/dom-lite-22.9.0.tgz"},"_npmUser":{"name":"lauriro","email":"lauri@rooden.ee"},"directories":{},"maintainers":[{"name":"lauriro","email":"lauri@rooden.ee"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom-lite_22.9.0_1664218185725_0.8342365829969889"},"_hasShrinkwrap":false,"deprecated":"Moved to @litejs/dom","readme":"\n[1]: https://badgen.net/coveralls/c/github/litejs/dom-lite\n[2]: https://coveralls.io/r/litejs/dom-lite\n[3]: https://badgen.net/packagephobia/install/dom-lite\n[4]: https://packagephobia.now.sh/result?p=dom-lite\n[5]: https://badgen.net/badge/icon/Buy%20Me%20A%20Tea/orange?icon=kofi&label\n[6]: https://www.buymeacoffee.com/lauriro\n\n\nDOM lite &ndash; [![Coverage][1]][2] [![Size][3]][4] [![Buy Me A Tea][5]][6]\n========\n\nA small DOM implementation\nfor testing, server-side rendering and working with html files.\n\n\nExamples\n--------\n\n```javascript\nconst { document, DOMParser, XMLSerializer } = require(\"dom-lite\");\nconst { XMLHttpRequest } = require(\"dom-lite/xmlhttprequest\");\n\n// Use XMLHttpRequest in server side\nvar xhr = new XMLHttpRequest()\nxhr.open(\"GET\", \"https://litejs.com\")\nxhr.responseType = \"document\"\nxhr.onload = function() {\n\tvar doc = xhr.responseXML\n\t// Work with DOM in familiar way\n\tconsole.log(doc.querySelector(\"title\").textContent)\n}\nxhr.send()\n\n// Build DOM manually\nconst el = document.createElement(\"h1\");\nel.id = 123;\nel.className = \"large\";\n\nconst fragment = document.createDocumentFragment();\nconst text1 = document.createTextNode(\"hello\");\nconst text2 = document.createTextNode(\" world\");\n\nfragment.appendChild(text1);\nfragment.appendChild(text2);\nel.appendChild(fragment);\n\nel.innerHTML;\n// hello world\nel.innerHTML = \"<b>hello world</b>\";\nel.toString();\n// <h1 id=\"123\" class=\"large\"><b>hello world</b></h1>\n\n// minify output\nel.toString(true);\n// <h1 id=123 class=large><b>hello world</b></h1>\n\nel.querySelectorAll(\"b\");\n// [ \"<b>hello world</b>\" ]\n```\n\n## Contributing\n\nFollow [Coding Style Guide](https://github.com/litejs/litejs/wiki/Style-Guide)\n\nRun tests\n\n```\nnpm install\nnpm test\n```\n\n\n## External links\n\n[GitHub repo](https://github.com/litejs/dom-lite) |\n[npm package](https://npmjs.org/package/dom-lite) |\n[DOM spec](https://dom.spec.whatwg.org/) |\n[Selectors Level 3](http://www.w3.org/TR/selectors/) |\n[Coveralls coverage][2]  \n[Buy Me A Tea][6]\n\n\n## Licence\n\nCopyright (c) 2014-2023 Lauri Rooden &lt;lauri@rooden.ee&gt;  \n[The MIT License](http://lauri.rooden.ee/mit-license.txt)\n\n\n","publish_time":1664218185888,"_cnpm_publish_time":1664218185888,"dist-tags":{"latest":"23.2.1"}}