{"name":"dom-lite","version":"20.2.0","license":"MIT","author":{"name":"Lauri Rooden","email":"lauri@rooden.ee"},"description":"A small DOM implementation","keywords":["browser","document","dom","litejs"],"main":"index.js","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"},"jshintConfig":{"asi":true,"laxcomma":true,"maxdepth":6,"quotmark":"double"},"gitHead":"df0a124037b56ef77d46aa5932f6d9d49915dcfc","homepage":"https://github.com/litejs/dom-lite#readme","_id":"dom-lite@20.2.0","_nodeVersion":"8.16.2","_npmVersion":"6.9.0","dist":{"integrity":"sha512-jkpXKQTEPXN9yXuNtOG5SoYB5Fa2IuNuJASgFqh5E0zrNR1P7JfGkI2oBfBT8RMURwb5pdGNzxOmLHTagc0thA==","shasum":"5bd1fbcacaf9135ca8ceb90e373e0c2310976314","tarball":"http://registry-npm.ywwl.com/dom-lite/download/dom-lite-20.2.0.tgz","fileCount":3,"unpackedSize":13122,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeOpQECRA9TVsSAnZWagAAKYoP/3CWXBEcPUnenimOd7pl\n1Bl4f5TKbuiOT2i0gtaIIB5I168maqvi+7tbarRVxeuFpNPsc21z/Xmr/mKZ\nUbneZJJ5pH7LHXyqJq2xVeLM7quA8m4THUJ7CYTdH83EDUUlZ7RDBlbQ8AQX\nFPnddUnBtNJOzEMIlv7PT8lxl6XadtyuwDKaIMA7LtlrYP99t+TTump7hwxP\nZx+DWio883a7Erj2ECSrpEaQ7GtCvN8l92PaZYHLkTiWd3h4cRj92WURC2q8\n5RALeVCeu1yiq+Hi9W+tqqNd9IZiGFpFcjd9zqgUFFBqMtFILxSjq1BJbCOm\n6vkpaqqRSzB6ah8gpqE3xlgO3tAtoM3OUrqw5dqWign4TenGRHpf7JMVKNk+\nLMSuI1Yud5cxN729/2YzeRtvUVzPDMBx/lNiZwcG3h4XFtesaHiyZt/R2soP\naTjv9Y4kJeaeRrdzN8NVRUWldDSs0ziog/3Dxl01TYo6XNlHA9jeZwVYfE47\nftVPZe1F2LIHifzCwAs13pQ7XKTUQvia0zsBMAjy85UGV5dSd+8hAcX6eOzr\n+5SG7K/IFNQBrv9y566XDr+JA9YF42afdGlSxmEkTSMvURj2fRZdQibmwufe\nCqm4kvhafqNweFNck+oZyp2w10U8gE2bHas9ULpfB6XXxSkCAxIgaes3bLXB\n92gc\r\n=R0GK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBzFwz5snS4uzS85ivrsz6ppJsL3EYRk2VVVXIywrTbpAiBu0rbiJQPo0l0dduLPIVRJ02Dm28nBEzx0vDqiU+sE5w=="}],"size":4503,"noattachment":false,"key":"/dom-lite/-/dom-lite-20.2.0.tgz"},"maintainers":[{"name":"lauriro","email":"lauri@rooden.ee"}],"_npmUser":{"name":"lauriro","email":"lauri@rooden.ee"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom-lite_20.2.0_1580897283213_0.5753649135096881"},"_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":1580897283716,"_cnpm_publish_time":1580897283716,"dist-tags":{"latest":"23.2.1"}}