{"name":"html-element","version":"2.3.1","homepage":"https://github.com/1N50MN14/html-element","keywords":["html-element","HTMLElement","element","shim"],"repository":{"type":"git","url":"git://github.com/1N50MN14/html-element.git"},"author":{"name":"ins0mnia","email":"ayman.mackouly@gmail.com","url":"http://github.com/1N50MN14"},"license":"MIT","description":"A simple HTMLElement shim on the server.","gitHead":"a66ce0f12852e135f238ad797380c06ef2c7df95","main":"index.js","scripts":{"test":"tap test/*.js"},"directories":{"test":"test"},"dependencies":{"class-list":"~0.1.1"},"devDependencies":{"tap":"^6.3.0"},"engines":{"node":">=4.2"},"bugs":{"url":"https://github.com/1N50MN14/html-element/issues"},"_id":"html-element@2.3.1","_nodeVersion":"12.11.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-xnFt2ZkbFcjc+JoAtg3Hl89VeEZDjododu4VCPkRvFmBTHHA9U1Nt6hLUWfW2O+6Sl/rT1hHK/PivleX3PdBJQ==","shasum":"5feb23dd5226467ef8c2faec51a5bf29c4ef5440","tarball":"http://registry-npm.ywwl.com/html-element/download/html-element-2.3.1.tgz","fileCount":8,"unpackedSize":33551,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeOoTYCRA9TVsSAnZWagAAVQ8P+QCKAtZms4MfTxnrTwv2\nXERSIZOqyd9D/k0Mcp2O9C3kKkU3KTq5dLMamYOmbs66LSCpafHyaZePt+wN\nNWKzMkjGIXbXGmVusff6j+xBt6txfJ02W9tflgKCXsY8shjCuCy+KD+fyGtE\nv1U1Euw42nfrzVQ/OG8+VKRSEYPIcgsDGEDdAks6BBdTo81B5ipmHGeqF1me\nfHIYgWN5xxB46ZvoHSOneWhu7doBX7DAYmn4jUhlPVcZBBxk04jvnAj9GfpX\nTz4Wr1zr1KeI2dfDFjgjUNPePJVSpSI6TmlIebBTvyC44iyFLUEQ8RbuuusP\nne5+RNO8bijIC573gGHJIxOqWL33oiNsXNgpDyZ8qCnhiifOkmpQy8XnV/pi\nB4a/R7v136mAW4cEEvkyM5Xb/12pBU3yOPYvJxA6apWSBRsekP/wCrm8XfXZ\nQANERsaaLweyfuvSF9G/GTeDu7keYkDtMkMKn6dOuWqm1uct14aGIjHbvvnU\n28Z/UUjoVijC0xs9R+RXe/AvqrMPVPSfXPljj+EcF/WqxVNRTN6XweCb6MrW\n8HymIl+6Qb2p6h252B9RhLG3Uak0IAMmIGFXfd9sEVh5KmUcgYDn1Cf6yT48\nq3FFDcXUe4GlMGrxh3qrlAdYEQ5cbPvV2GZiaNE/g1E0deEDxbglMp2DwoUg\n6Y+v\r\n=lTWH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOMfAPUF0Df1zoXi28svTjYgm9hBIaa1WnmTb2P0d4DAIgFZ7GXdNAN3wXYB9CVBXCyc0Vgp00F8pM6zB/VPkdLX0="}],"size":8797,"noattachment":false,"key":"/html-element/-/html-element-2.3.1.tgz"},"maintainers":[{"name":"ins0mnia","email":"ayman.mackouly@gmail.com"},{"name":"tdumitrescu","email":"webdev@cmme.org"}],"_npmUser":{"name":"ins0mnia","email":"ayman.mackouly@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-element_2.3.1_1580893400234_0.7599040693400401"},"_hasShrinkwrap":false,"readme":"# html-element\n\nA simple HTMLElement shim on the server.\n\nThis is a partial implementation of HTMLElement, to get client-side templates (such as [hyperscript](https://github.com/dominictarr/hyperscript)) working in node!\n\nThe current implementation is fully compatible with [hyperscript](https://github.com/dominictarr/hyperscript).\n\n### Upgrading from v1.x\n\nAs of v2.0.0 (Aug 2016), `html-element` no longer affects the global namespace by default. If you currently rely on `require('html-element')` to create globals such as `document` and `Element`, you should instead `require('html-element/global-shim')` when upgrading to v2.\n\nFor non-global usage, you can import objects directly from the main package, e.g.:\n```javascript\nvar document = require('html-element').document;\n```\nor\n```javascript\nimport { Element } from 'html-element';\n```\n\n## Supported methods\n\n- createElement(nodeName)\n- createTextNode(value)\n- appendChild(node)\n- replaceChild(node)\n- removeChild(node)\n- insertBefore(new, existing)\n- toString()\n- setAttribute(name, value)\n- getAttribute(name)\n- setProperty(name, value)\n- getProperty(name)\n- innerHTML()\n- outerHTML()\n- textContent()\n- addEventListener(eventType, listenerFunc)\n- removeEventListener(eventType, listenerFunc)\n- dispatchEvent(event)\n\nSetters update existing objects, otherwise create anew;\n\n## Properties\n- innerHTML\n- outerHTML\n- textContent\n- attribute.value\n- attribute.name\n- everything else\n\n## TODO / Missing features\n- Your PR to make this a more accurate implementation\n\n\n## License\n\nMIT\n","publish_time":1580893400370,"_cnpm_publish_time":1580893400370,"dist-tags":{"latest":"2.3.1"}}