{"name":"html-element","version":"2.3.0","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.0","_npmVersion":"6.1.0","_nodeVersion":"11.12.0","_npmUser":{"name":"ins0mnia","email":"ayman.mackouly@gmail.com"},"dist":{"integrity":"sha512-axsAv89JAxk/zSSOn+jK5dJ1eAUVSkienyIcruAe/kD5skC/E/HxjFfCfNYv8+A9m7BXR9kfL4ZD1ZobUfUWzQ==","shasum":"0e5c1d979223b0febfbcacdeb56c75d1e9297de9","tarball":"http://registry-npm.ywwl.com/html-element/download/html-element-2.3.0.tgz","fileCount":8,"unpackedSize":33228,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc5Pu2CRA9TVsSAnZWagAA0H0P/i7K5BmquU8u6+GN9WrK\nvE1/q6UCiWP7A0s1AifvDrCT0TRp0W7+S9Jpy8tBAUfM6cI0GRPJdUy1MPGb\nYsMoVO35Qte7fO834z6LNgl/JyVy3+eJaUqlmOu7rigMt0zp0SlWBGYdeofX\nEiuGbo6ZlHZMSOxfGwcC5bcENDgQGY03e7EXcHLbN7/TS616wTxVOHDzfX4I\nYkmb/amkKi/wvXX5MBMH616UxV+e3w4oPdGYYBxOWSF7/FQ6O+g8fNAwUj6O\nzRYOrWZVxn1LgKu37oXeDRNC3G1mPhXi8o8KqsdKSGRNT47C3Z7ig4yquxlu\ngXzor0FZ6ilrchYBsAXblxrUekHyp/DSCOx/FXGdqNxLCS+mD2VbbI/fqkH9\nMOeHCV0oB8DeAipl+MAVq73EKtIyDjr5sVfWJEZAXnvbdc4zi3OBbY5EZfB6\ntza2xdxh2OiCXvlGKXMhgTXIzIEQnFlLUvDYHDwNEmyZQ1iXfigU34MFjuWX\nxWkhS5/aGvQrEKEoWoUejdryuw8u8asEp62sCgqkWYBbvm1p2SkYdkb5GTv1\nYgNq+eYoeeIdiU1fng+PoEq71Dq0Ku50KKTiY39Cw5tlT7pRWVLEoeArHvhw\nBJlyNcWMnt7ZaUYKfgOV4JK1cOneh5RcIwCGkpiYN6DktDneHDtTF9fC9FPp\n+ze4\r\n=jujd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICKDAsk14GH0FuVPv4rREmGNeZbxDAr9hCdk5aaANLpEAiBYh24FKRj2B8TFu000nGGTNauS0ofnlKTH0VdNtCHpkw=="}],"size":8721,"noattachment":false,"key":"/html-element/-/html-element-2.3.0.tgz"},"maintainers":[{"name":"ins0mnia","email":"ayman.mackouly@gmail.com"},{"name":"tdumitrescu","email":"webdev@cmme.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-element_2.3.0_1558510517859_0.9974966834924599"},"_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":1558510518052,"_cnpm_publish_time":1558510518052,"dist-tags":{"latest":"2.3.1"}}