{"_id":"@amgg/elhelper","_rev":"7-c183723b15b99b41334921ecd47f8320","name":"@amgg/elhelper","dist-tags":{"latest":"2.0.6"},"versions":{"2.0.0":{"name":"@amgg/elhelper","version":"2.0.0","description":"","author":{"name":"amgg"},"repository":{"type":"git","url":"git+https://github.com/adrianmgg/elhelper.git"},"private":false,"publishConfig":{"access":"public"},"devDependencies":{"typescript":"^4.5.4"},"scripts":{"build:cjs":"tsc -p tsconfig_cjs.json","build:esm":"tsc -p tsconfig_esm.json","build:umd":"tsc -p tsconfig_umd.json","build:types":"tsc -p tsconfig_types.json","build":"npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:types"},"main":"dist/cjs/elhelper.js","module":"dist/esm/elhelper.js","umd:main":"dist/umd/elhelper.js","types":"dist/types/elhelper.d.ts","gitHead":"b0ec6a1c6d794724cc5374ee970f0aaca2a07ef3","bugs":{"url":"https://github.com/adrianmgg/elhelper/issues"},"homepage":"https://github.com/adrianmgg/elhelper#readme","_id":"@amgg/elhelper@2.0.0","_nodeVersion":"16.4.0","_npmVersion":"7.18.1","dist":{"integrity":"sha512-3B3Rp3odxV/r9ccqKidwkxFc+kVntg3oK3G7lxXuSxOu7QE67btfL3YcrypuQGSApjVj2LYP0epbpMxlvjk0jg==","shasum":"34dd10134420cbbed70f0b4644bd06f1ba70fa01","tarball":"https://registry.npmjs.org/@amgg/elhelper/-/elhelper-2.0.0.tgz","fileCount":6,"unpackedSize":13174,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3nUrCRA9TVsSAnZWagAAfPoP/ikYkfABPOJ1PuRy34yU\nSj8dPYASm9fQzPUPW/lS/H3Gassnd1cKFh6EmL0aHEFM3TogrMyYML1c4RfD\naOYxQC1FXMaF8uzYKFW3Nk/1IMeiYikyXcCOmSyi7PaXnr7ir39CjwY0Bg/y\nl867F8lzBMBYOuQBIBUh/14w+gAv+RTc0YWG2VtEyv6ahcuobII/I3qulbLw\nOnRV4N3o594VUWCvKfnbYgtaLz8K+xsU6E3ZkNw/caC+ljl5QCGMcipJAlyF\nZj7ZisgwU2CjPITOKCON5mkguWL8eeERdzcqegx/Dn+Yfh4S95T/piMsZgo3\n0KZwz/C7RPxs+t65l/rCtkZc8YwSe09yuipulKrKKs+4ngnviCjnTMWHpNg0\n29FMNE+Qqre+AHO5mF6o7azS/yzPv7s4Qsmpnx8b1nEh2tbBHn1cehrlxL/H\noJ42qhd3XDALlidATNjHJlaZm0BU+G0pycsQOCleyzEDaEub/pGegTea+Zuh\n5C5oCP2nb5dYw14lTG/eAhck7edpI6sNUKInmDH60gfo1tTQewxqQF125hTI\nWAIBQTjPkyL0ErtitFoq2tAldwUXpErkiycIlQIz77qk1WUiykjbY2U82Orz\nTnjHCNNLNAhehaa86uzL1Bzv5KBb+n+l88kpCsSbgkhYO/jEx/dJ5YJqGuOc\n1I4X\r\n=O5im\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDDcBA3j/pvkthpLKjK6LijTAmKr6Zfyh4yRtSkNb0drAiEAmuhb6WS4CMxaR6Dekzo25KPQ/Ija/NrQMm312gIDCQE="}]},"_npmUser":{"name":"amgg","email":"2adrian2@gmail.com"},"directories":{},"maintainers":[{"name":"amgg","email":"2adrian2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/elhelper_2.0.0_1641968939393_0.03655022170478661"},"_hasShrinkwrap":false},"2.0.1":{"name":"@amgg/elhelper","version":"2.0.1","description":"","author":{"name":"amgg"},"repository":{"type":"git","url":"git+https://github.com/adrianmgg/elhelper.git"},"private":false,"publishConfig":{"access":"public"},"devDependencies":{"typescript":"^4.5.4"},"scripts":{"build:cjs":"tsc -p tsconfig_cjs.json","build:esm":"tsc -p tsconfig_esm.json","build:umd":"tsc -p tsconfig_umd.json","build:types":"tsc -p tsconfig_types.json","build":"npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:types"},"main":"dist/cjs/elhelper.js","module":"dist/esm/elhelper.js","umd:main":"dist/umd/elhelper.js","types":"dist/types/elhelper.d.ts","gitHead":"446d867174f7133bdd4da046872023de96914141","bugs":{"url":"https://github.com/adrianmgg/elhelper/issues"},"homepage":"https://github.com/adrianmgg/elhelper#readme","_id":"@amgg/elhelper@2.0.1","_nodeVersion":"16.4.0","_npmVersion":"7.18.1","dist":{"integrity":"sha512-gABBmFmZPHr9PKUnWQszeiOPyKywxa/ORIKpzTpU+Bw+yy6Vzw6HGhCIEIUWNQ4pMtMiu/1vwgQjqFfGX306hw==","shasum":"74e83273f2cb6c93b26ffffb5ae7aa7963873557","tarball":"https://registry.npmjs.org/@amgg/elhelper/-/elhelper-2.0.1.tgz","fileCount":6,"unpackedSize":13266,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3nysCRA9TVsSAnZWagAABZQP/AqoUPGjFOfBt3HSSrHb\nRZw4Y5fxBImfssWrgxl8Xnw3AjrAD6i+R0+FvrnuZwSXs4WKgTP0y0hyuIFY\nIIqAnlEM5Uaqv4HcOHIciD0TVnk8/xwyTT+Nru5UC877eDq7RCVBO1YNLa2p\n52WZo5Pcsj4De/m7PTYFxO4dDsDAZX2OyvyogYVgiuYZbQ5ct0+68SxBrgE7\nrv+dJccBlETYl+e5dKyWT/BPaey2PK/nsDS1w2jbuPCJIpUAHzVDXPSxzh/d\nyyKHcZCwgwAPPOg8FTGW7swKu55/foUQqHvkD1C2zzAHrdFcAZ1G3hxx0X2u\n7dq3GXq16KAuMqgvRELC9YSDa0JWbKfP5qNJAuFSE597DQ3EEfHTYmz9iywl\nJKNSXAT0x3P8aEYyVOWAEdbSWDlnalNNARd/neWZsnJ9qWf0BG2G/iO+GdSG\nfKBMzEpRGAyW34lX8ZCHciawwGiLvjWuCXlCFAKay8+2VMx9jLbq9DYuJhxS\nz9fvcgHUgwxFwcnaKFgxtd9IxXtRTVQEN4Q+E+pZDynTGWf4xXgZ+Nx4G7G8\nn4L9rgh35rZVdcla4aEOo2kcHtlrecY0ykZ42aDOq4ml+fRjFSXkVhJ/M0zW\n5Yr1lffm/7bdxptv4ULjfxODe41nktT//54j4flH1GkIwrBqthPYmeVWkkIq\nSVrN\r\n=WTHe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCI+XyfyQp7qBYv0ghPcSH7QCeobxd7PwIjd9M5zKMHCQIhAL1VV3R7elwcsIGB0/JnW37gWz+NNADF9N5zgG9Wzmgh"}]},"_npmUser":{"name":"amgg","email":"2adrian2@gmail.com"},"directories":{},"maintainers":[{"name":"amgg","email":"2adrian2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/elhelper_2.0.1_1641970860436_0.5237893619620928"},"_hasShrinkwrap":false},"2.0.2":{"name":"@amgg/elhelper","version":"2.0.2","description":"","author":{"name":"amgg"},"repository":{"type":"git","url":"git+https://github.com/adrianmgg/elhelper.git"},"private":false,"publishConfig":{"access":"public"},"devDependencies":{"typescript":"^4.5.4"},"scripts":{"build:cjs":"tsc -p tsconfig_cjs.json","build:esm":"tsc -p tsconfig_esm.json","build:umd":"tsc -p tsconfig_umd.json","build:types":"tsc -p tsconfig_types.json","build":"npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:types"},"main":"dist/cjs/elhelper.js","module":"dist/esm/elhelper.js","umd:main":"dist/umd/elhelper.js","types":"dist/types/elhelper.d.ts","gitHead":"6e5c0253c0932eb5decf777bc437bbcaf7656e28","bugs":{"url":"https://github.com/adrianmgg/elhelper/issues"},"homepage":"https://github.com/adrianmgg/elhelper#readme","_id":"@amgg/elhelper@2.0.2","_nodeVersion":"16.4.0","_npmVersion":"7.18.1","dist":{"integrity":"sha512-8SMx6Zle8DHIeHlG6nK8a8KsqXe4bNVPxHAbWVtf5B0kh/xB5NPOH+o/su37P1GgwuUlnsFwER6mwA1TABN1Lg==","shasum":"64939fafa19753bdf5188da2384e19285eadd8f9","tarball":"https://registry.npmjs.org/@amgg/elhelper/-/elhelper-2.0.2.tgz","fileCount":6,"unpackedSize":13354,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3n/HCRA9TVsSAnZWagAAqLMP/0XkEaSBAD/YFZV5g7J0\nTCdv2kvGWqOu8178F9g8C5Z2Z6m3vCoDvXjjkWOdReJGK+GJI2o8uQuF116z\nCtn2yxham4Fp7KY1SVXLVKCaLxhREHYFdwOxbvnXv9IbkbwH8uwe3LF+c4oM\nErampKV00OknsaIJuHJCBLKWaQO9w4b8SVPb6bC2q4gy3IFvykR/kiY/tqmw\n1VOGhCAtHiPBTyuz+tNeaqftZ2mnscEiAvDnwI43jOs4zqKmBo4Nv2Db2mrq\nEUwfOswPcYQRKOb9tmWjvvrIVD2wK0a8gxLSh1yCpCMXQ4JFkogd0of2dCCa\nqLiYKTO3eszWWnc+glZnkhndC1/ipuD8QjIK1IjyvNY8+6mORW/2TS3PF9Am\nkx4Hfm5qajlApZvAUTgXIpwyxEqX8iPwB5UyPQD4yloB0GdyEKJZlzMYXQYj\nilpTMm5I3n+zcJltYjod/zhyaw6zoAjMHIbniNlK/AiY5/xWeretK5qkVC3O\nWigA2bh46HktBFDv8+eFOGjCJoVLJJqklbA2VIVtMz8VwTB0raYArhxQdK+H\nXxzcYvQMgjbaAGKelLSwu7z+xf/l9OQrMVaAy9+cjDxmbQmeBT1g/7BCXEKX\n/LYkHH97jX/m5f+ZuKYXKo2MKU1sOl8XpwMZiZdbwTIfI7KpOyPsENMHqZst\n1loW\r\n=lZgm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGbo+9GFplEU/aA6L/5HS0+Weqgyf/yA70Ze8YGjEhvXAiEAs0i1HzWoWEvC00ctM8r0wIuy4b+mV4clga+5J1k71dg="}]},"_npmUser":{"name":"amgg","email":"2adrian2@gmail.com"},"directories":{},"maintainers":[{"name":"amgg","email":"2adrian2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/elhelper_2.0.2_1641971655541_0.8135400452790613"},"_hasShrinkwrap":false},"2.0.3":{"name":"@amgg/elhelper","version":"2.0.3","description":"","author":{"name":"amgg"},"repository":{"type":"git","url":"git+https://github.com/adrianmgg/elhelper.git"},"private":false,"publishConfig":{"access":"public"},"devDependencies":{"typescript":"^4.5.4"},"scripts":{"build:cjs":"tsc -p tsconfig_cjs.json","build:esm":"tsc -p tsconfig_esm.json","build:umd":"tsc -p tsconfig_umd.json","build:types":"tsc -p tsconfig_types.json","build":"npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:types","setup_for_gh_release":"node scripts/setup_for_gh_release.mjs"},"main":"dist/cjs/elhelper.js","module":"dist/esm/elhelper.js","umd:main":"dist/umd/elhelper.js","types":"dist/types/elhelper.d.ts","gitHead":"cf2b5f05411386b82706eb07c0a1f6ec91ec2ca7","bugs":{"url":"https://github.com/adrianmgg/elhelper/issues"},"homepage":"https://github.com/adrianmgg/elhelper#readme","_id":"@amgg/elhelper@2.0.3","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-9pGBvBFnFEOBN4/GNhaPEpjEOcCoKNgD+nC5Nhm5PS+/o4Vp94au6YXc78KWobUIwFzhyU3EF8TSFz2ZyKuMmg==","shasum":"ec0166c2df6ef1f7038a5f7ec8856b1346dbbabe","tarball":"https://registry.npmjs.org/@amgg/elhelper/-/elhelper-2.0.3.tgz","fileCount":6,"unpackedSize":13269,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh30deCRA9TVsSAnZWagAA7UQQAJvT+2CCooOI97jpy3C9\n+5MaOrygWTUE3Ygs3la+jBX38ElHjNntPwvF9UFJAfY4lzRxtKo0s962kUnh\neB+fMXpKLM1gao2no79VqfW/7grOx2nshlj7fDyK54pp2Y8RcvLNPnT91TKY\nYtRdHX4qMuHfl4I+ZmfY/Ej/InPKpzfy4OL29abDUZQFEZcC7hA4HqGHDo86\ni3YboH4My4fD9rCLMbue36JHw6vh3RMtfH0lKcK0Wn0ZUGziZGuON826nQmx\nzobXFcNKCUjB6N6jnyrdgo0kq/jW9QxLJuaN35cuRogMwPxQH4EHsNg+KwpW\nyBD4KJSWhp8Re8XgbA5D5LB60D4p5swbSUpZ5Xl09tfup4dmMrpu1Qo8BIJq\nHdfSlUh2mYZwP9RW+iB1GZIskJwTdv0A1KxfkQFaDZRmmMYc0WV3BrjcOEz8\nXRpOg3V6vmAO22HHTf10o9Sbxn7UwEs/64tgoEa/Vo/34j3Pu/H6CnYOd2S+\nPHrge7BXim7fS8o8+JPagnDW1nGyu0VBklUinAsnVrXrz+6XM8tGFcPZ/nw7\nZrMCTgbYylpofl+uCSUZPs9+dfgawCc3PHdosoQKMa9/O6kE3RZ+pjsUZl5r\ng0vQXHORc2nBYH4fhL65UAc/oZmBvw9gz1wYwDvWBoRtNfveaBD5NmBTg2A3\n20YQ\r\n=C/as\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID2w9BPuqp1YgrOy9DA/C20wagh3w8aQJ4mOlLJU6qymAiBbEYQVjE4wQcUHeBfziyUIEYk88aErxYeCBV/vy3O2eA=="}]},"_npmUser":{"name":"amgg","email":"2adrian2@gmail.com"},"directories":{},"maintainers":[{"name":"amgg","email":"2adrian2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/elhelper_2.0.3_1642022750214_0.8291498925988321"},"_hasShrinkwrap":false},"2.0.4":{"name":"@amgg/elhelper","version":"2.0.4","description":"","author":{"name":"amgg"},"repository":{"type":"git","url":"git+https://github.com/adrianmgg/elhelper.git"},"private":false,"publishConfig":{"access":"public"},"devDependencies":{"typescript":"^4.5.4"},"scripts":{"build:cjs":"tsc -p tsconfig_cjs.json","build:esm":"tsc -p tsconfig_esm.json","build:umd":"tsc -p tsconfig_umd.json","build:types":"tsc -p tsconfig_types.json","build":"npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:types","setup_for_gh_release":"node scripts/setup_for_gh_release.mjs"},"main":"dist/cjs/elhelper.js","module":"dist/esm/elhelper.js","umd:main":"dist/umd/elhelper.js","types":"dist/types/elhelper.d.ts","gitHead":"d36bb082f4c79c216f9ddbb906a016421e6b3338","bugs":{"url":"https://github.com/adrianmgg/elhelper/issues"},"homepage":"https://github.com/adrianmgg/elhelper#readme","_id":"@amgg/elhelper@2.0.4","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-6X9m6Zx5Y4nx2B1lF7Pz5QASdwJ4OQzWicw7+9QsuKWrcdHoAObD1Ffmb76LMPZP7hXLYnxgQKwDQyz6ItgHng==","shasum":"ed4cef8baccb13f2a71f945b14e44e6d7ecd4499","tarball":"https://registry.npmjs.org/@amgg/elhelper/-/elhelper-2.0.4.tgz","fileCount":6,"unpackedSize":13269,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh30owCRA9TVsSAnZWagAAvHUP/jx9uC0Z+rkhKBQQk1jr\nrkqsS7+tCsbYDWHnXnr1POYIUcR9HdwMgzkSaVNHHIvS4K2CTTnjny53JvBj\n7S1N6DaZqEbTVDHHpiMazQpd7PP8ocmgs03IAYNaNugefFa/tj5uHq8gcUDT\ncHdSdrmFSzCC1AJQ3KlDH9E5EfJipjd8C/nosOWWAn8kXNrHRigDGP244QGC\n3ESFSNsaZva8AGWke9pJDM0iY1M3l7N0sHcQ894iVmWx7hKo3DIlBJ93lAzv\nxCCaMcW9ewE4oLA17cFCMGbKjfhLN+wO/VySxsEs1LBSD6ZNZqOMXa/V8qmb\na3LzqtiunGTf+tlV9xeqqmuW6Cho+HLEu82Rce7BMaMT52jdzESKnGn7eP/B\nODI99gCxiwrm5qRcZjItBk4d9arhf0BXVp73SPmQlyyYc1WK4FWd4pbC4Q3e\n7dSkf7mMWGUgX0t9nZ9qc0ELrUcc462+xpBt8eR9EZ7380uU2PS7aOKEk4sV\nRiNZtig7YjkiULeDCo4RP1p0xLXurDfvcYYQfguTj7+fyPdOeFut9gQ5zO3e\nMKKnqQbd0gWT9s/zsY4nN3wg9AafdYyfkTNP7iWz2QWI6ksMgrvgWLuNNFHd\nSWkBVrysqs9fJQwrG8LPeag5HLm3Jopjt2OgrALsFL0aqPKsCESFAPCFMTGQ\nTtUX\r\n=KkqB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFKC1EIrcIJhsUdGv0xU5TLEnvWC15ot7Ntor+SJQvlWAiB9X0kQ0icGJRJ39smXQU8W04H57aE16bCGyHrUtjplJg=="}]},"_npmUser":{"name":"amgg","email":"2adrian2@gmail.com"},"directories":{},"maintainers":[{"name":"amgg","email":"2adrian2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/elhelper_2.0.4_1642023472110_0.8517829560407439"},"_hasShrinkwrap":false},"2.0.5":{"name":"@amgg/elhelper","version":"2.0.5","description":"","author":{"name":"amgg"},"repository":{"type":"git","url":"git+https://github.com/adrianmgg/elhelper.git"},"private":false,"publishConfig":{"access":"public"},"devDependencies":{"typescript":"^4.5.4"},"scripts":{"build:cjs":"tsc -p tsconfig_cjs.json","build:esm":"tsc -p tsconfig_esm.json","build:umd":"tsc -p tsconfig_umd.json","build:types":"tsc -p tsconfig_types.json","build":"npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:types","setup_for_gh_release":"node scripts/setup_for_gh_release.mjs"},"main":"dist/cjs/elhelper.js","module":"dist/esm/elhelper.js","umd:main":"dist/umd/elhelper.js","types":"dist/types/elhelper.d.ts","gitHead":"ac19f4bbc943dff4559f990f46c1cf64ad477d21","bugs":{"url":"https://github.com/adrianmgg/elhelper/issues"},"homepage":"https://github.com/adrianmgg/elhelper#readme","_id":"@amgg/elhelper@2.0.5","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-oI4qag52SMYQbmBWMsN+lT4VDgGnYzyyiwq1yl00i748eVGtB3F23MjOahHbrIqeO3Ge0EnGMhWgqwcwxEt5jA==","shasum":"7fee5d031f9406b799c77b0316c04a2d8f4f712f","tarball":"https://registry.npmjs.org/@amgg/elhelper/-/elhelper-2.0.5.tgz","fileCount":6,"unpackedSize":14040,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4iwfCRA9TVsSAnZWagAAUoMP+wWWklvzkSP3R5GxpOGg\nKtR0xFMNf3oYK5ZaDHfR1JYBZbC4X8K/j3r6cJ2X6O7AIVe7dRoUTjHxs4cX\nglF6MpnCGqdUz4LoiHYQmTal6bkYjz6rciwIAN2lTha+a9cA2CfoHe/EQFYG\n0iedJWlMD/0j3282+VsQuyRsvwqcxXumxSAUjBOeclxPMx2V5S7Rsmg8mWpu\nlbB7ZVPRqQHF7pc4rFsBD1liH/TO98LG0mQQTN4KQS8ITOgiw7cgFngxc20R\nIryYF0LgIO4k9jMFa/up//1OoQz//RtuWIuSFDDkft1kQrPA9DIcwJkKRvkz\niPA3k5OKmwQfJR0wLOHUKJPueFi5s5pvTsy+qgFiBGfsv6t/e8C+iSLl8eie\nCb4el5j6kwuZ7SvmVf67x3m4SgdSV/Y5f2HfPd+nYey7+ZUg9Kbm0STtx1py\nJTKF4z5Z+Bi1XYf3gaMWwxhS/suJXHwxTf35xxM1RFxA7ynD996/Nv8AtXPS\nFkw525n8ntDLs0I1dHZG0gLlxjJ9Wn2D1gBTDNilHXAHs+bLDEwZ3+beQoPz\n/CIgLtKW3fLsRf+4E/VzRvQeKylsupC1OW/qtuTNVUdMpz6Uq4ngQ6a3WxM5\n2JvvhMRAF/B5COfEAUAf72xLKxx8A4BHeB1aNjeafS0k9Bgw4toi3vmObSUS\nSx01\r\n=jkdO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGSigtUOvceISlHBwYzhvMFItZsDe9m3vBknRuTeQ9qPAiBfAhzZT7Y8noMDDuU++UOhL5bBsOs2dfFoa9erhXvM3w=="}]},"_npmUser":{"name":"amgg","email":"2adrian2@gmail.com"},"directories":{},"maintainers":[{"name":"amgg","email":"2adrian2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/elhelper_2.0.5_1642212383036_0.09597118443149566"},"_hasShrinkwrap":false},"2.0.6":{"name":"@amgg/elhelper","version":"2.0.6","description":"a small set of simple yet capable helpers for creating/modifying DOM elements","author":{"name":"amgg"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/adrianmgg/elhelper.git"},"private":false,"publishConfig":{"access":"public"},"devDependencies":{"typescript":"^4.5.4"},"scripts":{"build:cjs":"tsc -p tsconfig_cjs.json","build:esm":"tsc -p tsconfig_esm.json","build:umd":"tsc -p tsconfig_umd.json","build:types":"tsc -p tsconfig_types.json","build":"npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:types","setup_for_gh_release":"node scripts/setup_for_gh_release.mjs"},"main":"dist/cjs/elhelper.js","module":"dist/esm/elhelper.js","umd:main":"dist/umd/elhelper.js","types":"dist/types/elhelper.d.ts","gitHead":"bbf8e241ac8aa6618c6ff8b7a58a111f2fc4e12d","bugs":{"url":"https://github.com/adrianmgg/elhelper/issues"},"homepage":"https://github.com/adrianmgg/elhelper#readme","_id":"@amgg/elhelper@2.0.6","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-zXwMLWxDqyOwUSSTX6pn+pa4SWTqjCS3XCc0G7xuFrVsEWSz+7AFCTVHfKuKRQBqf/nxOBCJuQzBfkEK+unsCg==","shasum":"5f96a0d04392f338c5e559e554371a3ecb14d0b0","tarball":"https://registry.npmjs.org/@amgg/elhelper/-/elhelper-2.0.6.tgz","fileCount":8,"unpackedSize":19801,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHC/KOyvxkf2VoouGMnebHc06wML3UQpR2WdR/Y5lbtDAiEA/oN/ZUUJ5mJWOmUe+5bIL+dX4R5KYKPLm4tAnONvrlE="}]},"_npmUser":{"name":"amgg","email":"2adrian2@gmail.com"},"directories":{},"maintainers":[{"name":"amgg","email":"2adrian2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/elhelper_2.0.6_1706909161121_0.15062591229475175"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-12T06:28:59.337Z","2.0.0":"2022-01-12T06:28:59.626Z","modified":"2024-02-02T21:26:01.478Z","2.0.1":"2022-01-12T07:01:00.564Z","2.0.2":"2022-01-12T07:14:15.703Z","2.0.3":"2022-01-12T21:25:50.369Z","2.0.4":"2022-01-12T21:37:52.252Z","2.0.5":"2022-01-15T02:06:23.272Z","2.0.6":"2024-02-02T21:26:01.300Z"},"maintainers":[{"name":"amgg","email":"2adrian2@gmail.com"}],"homepage":"https://github.com/adrianmgg/elhelper#readme","repository":{"type":"git","url":"git+https://github.com/adrianmgg/elhelper.git"},"author":{"name":"amgg"},"bugs":{"url":"https://github.com/adrianmgg/elhelper/issues"},"readme":"\r\n# elhelper\r\n\r\n## about\r\n\r\na small set of simple helpers for creating/modifying DOM elements.\r\n\r\nThis library was born out of my time writing [userscripts](https://en.wikipedia.org/wiki/Userscript).\r\nI found that using purely the vanilla APIs to create & manipulate DOM elements tended to result in code that was repetitive and tedious to write & difficult to read and maintain,\r\nespecially when dealing with many elements nested multiple levels deep.\r\n\r\nThose problems end up being solved in one way or another by the various web frameworks available,\r\nbut I didn't want to pull in something that complex just to write some <100 line script to inject a couple elements into a site's HTML,\r\nnor did I really need much of the other conveniences and complexities they introduce.\r\n\r\nSo, I ended up writing `elhelper`. I had a few main goals/ideals for it:\r\n- minimally complex\r\n  - don't reinvent the wheel - there's already vanilla JS ways of doing all these things, so just write a minimal wrapper over those.\r\n- maximally capable\r\n  - simplicity is nice to a point, but it needs to be able to do everything you need from it.\r\n  - it should be able to work with any element-specific APIs, ideally in a way that doesn't require any special-cased code from the library (both for simplicity and so frequent updates aren't required to include new APIs.)\r\n  - it should also work for non-HTML DOM stuff like manipulating SVGs\r\n- scalable\r\n  - code should stay easy to write/read/maintain, even when working with deeply nested elements with a lot of properties\r\n\r\nthe entire thing is under 25 lines of code (not counting comments & typescript-only stuff)\r\n\r\n\r\n\r\n## compared to purely vanilla js\r\n\r\n```javascript\r\ncreate('div', {\r\n    style: {\r\n        color: 'red',\r\n        backgroundColor: 'black',\r\n        vars: {\r\n            '--foo': '#FF00FF',\r\n            '--bar': '#00FF00',\r\n        },\r\n    },\r\n    dataset: { someThing: 'hello world' },\r\n    classList: ['a', 'b', 'c'],\r\n    children: [\r\n        create('label', {\r\n            textContent: 'some number: ',\r\n            children: [create('input', {\r\n                type: 'range',\r\n                min: 0, max: 10, step: 1,\r\n            })],\r\n        }),\r\n        create('button', {\r\n            textContent: 'click me!',\r\n            events: { click: e => console.log('clicked!') },\r\n        }),\r\n    ],\r\n});\r\n```\r\nis equivalent to this code:\r\n```javascript\r\nconst slider = document.createElement(\"input\");\r\nslider.type = \"range\";\r\nslider.min = 0;\r\nslider.max = 10;\r\nslider.step = 1;\r\nconst label = document.createElement(\"label\");\r\nlabel.textContent = \"some number: \";\r\nlabel.appendChild(slider);\r\nconst btn = document.createElement(\"button\");\r\nbtn.addEventListener(\"click\", e => console.log('clicked!'));\r\nbtn.textContent = \"click me!\";\r\nconst parent = document.createElement(\"div\");\r\nparent.style.color = red;\r\nparent.style.backgroundColor = black;\r\nparent.style.setProperty(\"--foo\", \"#FF00FF\");\r\nparent.style.setProperty(\"--bar\", \"#00FF00\");\r\nparent.dataset.someThing = \"hello world\";\r\nparent.classList.add(\"a\");\r\nparent.classList.add(\"b\");\r\nparent.classList.add(\"c\");\r\nparent.appendChild(label);\r\nparent.appendChild(btn);\r\n```\r\n\r\n## examples\r\n\r\n### creating an element\r\n\r\n```javascript\r\ncreate('div', {\r\n    style: {\r\n        color: 'red',\r\n        backgroundColor: 'black',\r\n        vars: {\r\n            '--foo': '#FF00FF',\r\n        },\r\n    },\r\n    dataset: {\r\n        someThing: 'hello world',\r\n    },\r\n    classList: ['a', 'b', 'c'],\r\n});\r\n```\r\n\r\n> creates this:\r\n> ```html\r\n> <div style=\"color: red; background-color: black; --foo:#FF00FF;\" data-some-thing=\"hello world\"></div>\r\n> ```\r\n\r\n### nested elements\r\n\r\n```javascript\r\ncreate('div', {\r\n    textContent: 'parent',\r\n    children: [\r\n        create('div', {\r\n            textContent: 'child',\r\n        })\r\n    ],\r\n});\r\n```\r\n\r\n> creates this:\r\n> ```html\r\n> <div>\r\n>     parent\r\n>     <div>child</div>\r\n> </div>\r\n> ```\r\n\r\n### manipulating existing elements\r\n\r\n`create` is actually just a convenience function that creates an element and passes it to `setup`.\r\n```javascript\r\nfunction create(tagName, options = {}) {\r\n    return setup(document.createElement(tagName), options);\r\n}\r\n```\r\nso, anything you can do with `create`, you can also apply to an existing element by calling `setup` directly, e.g.\r\n```javascript\r\nsetup(document.getElementById('foo'), {\r\n    textContent: 'hello world',\r\n    style: { color: 'red' },\r\n});\r\n```\r\n\r\n<!-- TODO examples for:\r\n - event listeners\r\n - SVG/other NS elems\r\n - `parent`-style usage, including with `insertBefore`\r\n-->\r\n","readmeFilename":"README.md","description":"a small set of simple yet capable helpers for creating/modifying DOM elements","license":"MIT"}