{"_id":"html-to-ast","_rev":"6-16fb45b93229858d9c61df0e99670c08","name":"html-to-ast","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.1":{"version":"0.0.1","license":"MIT","main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/byoungd/html-to-ast.git"},"typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"devDependencies":{"@size-limit/preset-small-lib":"^7.0.5","size-limit":"^7.0.5","tsdx":"^0.14.1","tslib":"^2.3.1","typescript":"^4.5.4"},"dependencies":{"html-void-elements":"^2.0.1"},"peerDependencies":{},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"name":"html-to-ast","author":{"name":"byoungd"},"module":"dist/htmltoast.esm.js","size-limit":[{"path":"dist/htmltoast.cjs.production.min.js","limit":"10 KB"},{"path":"dist/htmltoast.esm.js","limit":"10 KB"}],"exports":{".":{"import":"./dist/html-to-ast.esm.js","require":"./dist/index.js"}},"gitHead":"c0276102d55ce091ec058c7cbc946342a47ce29a","description":"Lightweight approach to enable quickly parsing HTML into an AST and stringify'ing it back to the original string.","bugs":{"url":"https://github.com/byoungd/html-to-ast/issues"},"homepage":"https://github.com/byoungd/html-to-ast#readme","_id":"html-to-ast@0.0.1","_nodeVersion":"14.18.3","_npmVersion":"6.14.15","dist":{"integrity":"sha512-HGkh8KMyjycqFw3gm+RdS3sgYNagNaZKEgtk7ttuFlzchVXLtc8ce/zcp5D14rR3xvpaoON+E7EzaXYupceGCQ==","shasum":"60c7b73ac70afd36c88b4d9ae2b949294f4e0f2a","tarball":"https://registry.npmjs.org/html-to-ast/-/html-to-ast-0.0.1.tgz","fileCount":20,"unpackedSize":67398,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQZOYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr4kw//Wko/9p5Z6Edvcjokei/OwE3rx67w6yTjgri5TWkc9EeGKnJm\r\nyrKttXG7QCL1cEVzYCCTTtmr5YMpYOd4qa6Me4UiSt1NS/ntRpOPqijDd+GG\r\nu21Gqq1R7mxLxUylonpC3InNI+2SLMoHnb1ulwGF8pc4LU8bg8WxsSw+s5W5\r\nL4M2j65HzXsvnjPHXCZ3lfNhM6vJWKqcbtxZL1kO5o1mQibCcEc5a+5ed/No\r\nkOZT2Zql+UW+ZMLDO2sXdLFNkywwJs02xfoG6wazTdiZ3Pfakg+4xHyRGAwI\r\neMWP3IoRow3cecAGwinmpqQrGxhtOl7/1VMPNiNBPoC/ZGPnQ3qdh8/W8N58\r\nHyXtFrGfCDuRScKFRwEvJPYksg3Rj/MR5a1ijDQdr56HKEYCzg1QuflmnlEr\r\nvvGm11oe2gdYeC1GgFmH3b7euDraXFw3yUlG3GTOtTkTwKEVDmSPdvr6OlpG\r\nSyB2M99Qc/orvarugXuCN26B+g0Q/QRojIZ3zdIz7eZ/O7P9rqMasDuGsHp8\r\nTCWp539UO2WnfX1m84XfGkB2PMj4Zl99gi0nhEa5EYQNWfCpzng0xMuN6FPp\r\n/1f2INUXopqBaduCnw1yZg1Kn1z8TQ4sKVjA4A48Euc9Coh8ADZZaEJn3ndQ\r\nQS1Z/iB1cKyDEy/tqO7GZdmH+7pAUnwjd0U=\r\n=40eU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbbpnTOld6QFP/kkvd88EnxCRTG/kHiUnYM+aksS9vcAIgEC/OXbRU06dgRWNpBBJv3HuiIERaS5Pcnt6hJFXF1Xg="}]},"_npmUser":{"name":"yu.team","email":"pg98@vip.qq.com"},"directories":{},"maintainers":[{"name":"yu.team","email":"pg98@vip.qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-to-ast_0.0.1_1648464792221_0.4775125769386215"},"_hasShrinkwrap":false},"0.0.2":{"version":"0.0.2","license":"MIT","keywords":["ast","html to ast"],"main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/byoungd/html-to-ast.git"},"typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"devDependencies":{"@size-limit/preset-small-lib":"^7.0.5","size-limit":"^7.0.5","tsdx":"^0.14.1","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"name":"html-to-ast","author":{"name":"byoungd"},"module":"dist/htmltoast.esm.js","size-limit":[{"path":"dist/htmltoast.cjs.production.min.js","limit":"10 KB"},{"path":"dist/htmltoast.esm.js","limit":"10 KB"}],"exports":{".":{"import":"./dist/html-to-ast.esm.js","require":"./dist/index.js"}},"gitHead":"a094f21c8a004832bff5aa9d9a0c47630c95089b","description":"Lightweight approach to enable quickly parsing HTML into an AST and stringify'ing it back to the original string.","bugs":{"url":"https://github.com/byoungd/html-to-ast/issues"},"homepage":"https://github.com/byoungd/html-to-ast#readme","_id":"html-to-ast@0.0.2","_nodeVersion":"14.18.3","_npmVersion":"6.14.15","dist":{"integrity":"sha512-oIRKBu+y7Q7vjbFevl1xK1Er8gXbNwtOP1NKg1FC+b7mcCYZmz6KTedMX/U/MxfHfPcwtwLeiC00SWqsXsWzZg==","shasum":"2f91643746ab4302a7070d49ab2fd4f7a9c2b468","tarball":"https://registry.npmjs.org/html-to-ast/-/html-to-ast-0.0.2.tgz","fileCount":22,"unpackedSize":70221,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQZTFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqyyxAAmBRvuFzspY+xAxqkjwi3k/LCowxYV/+ns25suekq4QOO965d\r\nfaAcKpF8CIDtPvPQ3g8e6COnlt+HtgM9ijDk7HW1QGLX2fDZ5i88T0dhSv1E\r\nSFnjO8M/c2ug/xivlHyMo7ELHFqgJObWKPMCFqiaOvlv61FTmsiFegFexHPY\r\n763y+M1olB6+WNPNOgnMveFIL6djEOLq8ZrnR2ZgA45AO8HZVBruR5FeL488\r\nSGY4j0muPCuZINirm9F2pnGYKEMHAWZq2YF//Lps9lzF35Pmsi2/rBLQq/7h\r\n35B2oQmIpkbq1DQSZ+w+aAMIwc7kybkifgaDBolSAeIbOZnE9abtZEU9x/xA\r\n/1pIitg3T8J0BaQgyf3vYM+pou6SYAPB8akYwyoO8QaAz/qSfXBcGAwZ+LH9\r\nlHOiBZuPsBHqJTNzL7RKnh9K3Ds6ekQ7w4+NTQAAmPYSXSKWuaHYtQ+Rzu16\r\nVh8kguUAwp3FJ8q5KMhADV6ZLYMBIr9nWSuUsY7Wcmbd8cw2ajnCWqlgmAL4\r\nbtRDTf3aceBLuuIWQYqhE6HYgjUHCddXkhfPJGouEXtvZc6usSvUqHOgUF2U\r\ntdW/EMpPNuKnZ2e0UCzrDN92IfwMwBWet8CPmjfcDjK7AscLUBeJ70SJTgsT\r\nyD0WKqb5/3n/0mNbby3S3S7x7z2Rzm3Jk7Y=\r\n=NvS3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7uncGzZRg6aaoo+TzkNBHjEuQhhF4wqC3M4cnTcFcSAIhAMPVYEQY0QVMKzmH+c4g9ABS3OCTiN+YrztEcLGzgG2E"}]},"_npmUser":{"name":"yu.team","email":"pg98@vip.qq.com"},"directories":{},"maintainers":[{"name":"yu.team","email":"pg98@vip.qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-to-ast_0.0.2_1648465093162_0.34684994271973824"},"_hasShrinkwrap":false},"0.0.3":{"version":"0.0.3","license":"MIT","keywords":["ast","html to ast"],"main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/byoungd/html-to-ast.git"},"typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"devDependencies":{"@size-limit/preset-small-lib":"^7.0.5","size-limit":"^7.0.5","tsdx":"^0.14.1","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"name":"html-to-ast","author":{"name":"byoungd"},"module":"dist/htmltoast.esm.js","size-limit":[{"path":"dist/htmltoast.cjs.production.min.js","limit":"10 KB"},{"path":"dist/htmltoast.esm.js","limit":"10 KB"}],"exports":{".":{"import":"./dist/html-to-ast.esm.js","require":"./dist/index.js"}},"gitHead":"f39a6473671be369870da2f1b53798cc4a729eb7","description":"Lightweight approach to enable quickly parsing HTML into an AST and stringify'ing it back to the original string.","bugs":{"url":"https://github.com/byoungd/html-to-ast/issues"},"homepage":"https://github.com/byoungd/html-to-ast#readme","_id":"html-to-ast@0.0.3","_nodeVersion":"14.18.3","_npmVersion":"6.14.15","dist":{"integrity":"sha512-jF0uKcvUf+V3zzt+EAyZEBJLlvRP7AS8uDY88U+a8I61yTHZE2yEIDErfCSDeXdtVg84Q0FeKemxsLu4t3E3Wg==","shasum":"d099272d88336f404a4dfea71d3b255e4c790f46","tarball":"https://registry.npmjs.org/html-to-ast/-/html-to-ast-0.0.3.tgz","fileCount":22,"unpackedSize":69861,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQZVPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqfxg/8CMFILqpsh+i+5KXR3Xi9F35bMCTbEqGRFyr5ym7D6d2kq0ZZ\r\ney8D7OL37Aw7DySFu7ieAh7SoRxuXaFTsAianmY7fS8aqYvUewOTkZpigwp5\r\nSrQcNi9c/3r/FGND4NmxIabMWsrhe1vHSieBMABpLxkP1lc5nGrGsse1aIk8\r\nx71hqO+2F/fmLWdFs7o96cxTibPijGhpKTIy/TF1FZ9lChI5vd5C9ClSnlI/\r\n+CNrQ9tWJrwAI3EAfwVHIgr5jj3ns/9UJA7IeL7K6MdNyapwFqfEbSIIyDVT\r\ntSuuphBNBWXUNQ3NIxc38f3WTmh+Gjo54CxDnVm31pvR4E0PflvI7z5Jh0iJ\r\nPd1rcfJk1FynqO1eMybpSL7vw/kysNlFNe/v1+FqGiLseGXc+nuTmGn8VNaW\r\nK8kdW04ckyTqdcLGQ2muda60Y54TAwFQWiT2kjwY60b/caLVh1F1eZGaG4Mz\r\nogc7aYf7btw0Y2G6HmQsKnXFFe1sJzIC8xq8ZZr/xAXSsV51F0bHqq9RRFbf\r\nzy6lom57DB4BGuyQoTyHx0Ti245Ld1GWlN5YZLELtghPJT/9U5cyIQAGt4dJ\r\n6izQuvr6daHXCpmBA6VOn2g9WCQvSDjNUEWrPHgXCx4H8Mb3Sg3hN/mGJckc\r\nOvWfFgTQYCizC7FcGT4ceV8FfFZ1LZuvWgU=\r\n=BRbK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHFRKB+BF9LW579Swh3qtsXf9sv8KcUbJHsVhs4oDBF+AiEA4gTeLsluE4RFw5lDkf/XDUc5olVtoykeb7gjmcOgCQM="}]},"_npmUser":{"name":"yu.team","email":"pg98@vip.qq.com"},"directories":{},"maintainers":[{"name":"yu.team","email":"pg98@vip.qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-to-ast_0.0.3_1648465231102_0.7671687452802438"},"_hasShrinkwrap":false},"0.0.4":{"version":"0.0.4","license":"MIT","keywords":["ast","html to ast"],"main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/byoungd/html-to-ast.git"},"typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"devDependencies":{"@size-limit/preset-small-lib":"^7.0.5","size-limit":"^7.0.5","tsdx":"^0.14.1","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"name":"html-to-ast","author":{"name":"byoungd"},"module":"dist/htmltoast.esm.js","size-limit":[{"path":"dist/htmltoast.cjs.production.min.js","limit":"10 KB"},{"path":"dist/htmltoast.esm.js","limit":"10 KB"}],"exports":{".":{"import":"./dist/html-to-ast.esm.js","require":"./dist/index.js"}},"gitHead":"f39a6473671be369870da2f1b53798cc4a729eb7","description":"Lightweight approach to enable quickly parsing HTML into an AST and stringify'ing it back to the original string.","bugs":{"url":"https://github.com/byoungd/html-to-ast/issues"},"homepage":"https://github.com/byoungd/html-to-ast#readme","_id":"html-to-ast@0.0.4","_nodeVersion":"14.18.3","_npmVersion":"6.14.15","dist":{"integrity":"sha512-OD/59ob92ms3i/NpYex4/0sgSKREmMa/H3Vnk8UxDTghX5JCzCvLstmT8P0zAsHCUd2JLQRJZSGYdE+Mb4rW9w==","shasum":"e1fb1f3fdb7a6d648896deec0f44d9e2684828bd","tarball":"https://registry.npmjs.org/html-to-ast/-/html-to-ast-0.0.4.tgz","fileCount":22,"unpackedSize":70126,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQsDyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpu1A//bTNLO20j0YglMYs0jK02J2s/ITD3aAxqM2s8KcxXEoBrNYt9\r\ndcgTnCCYUFhnevO/O01dt/LKmWuW4tdoS6lvu9oJWhrjsopCyDavMo+h7XsN\r\npE14/YWUHaTNaMzNC4H1ahxj9dw69ssXuar1okb4k8+TG4iTnaBP1SqAfTQy\r\nixBRC7SV10I1VRLoIuz7xYPhiMZjBqwT4q7NTS00qun37TrE1ejpX/+TX7ni\r\ncBDutxHksLAJbKVLtVmEnSYY+0bcYnpTvoAPitz1jojJib+ZkwPfwUTB1Ney\r\n+D8/FnIAdEjDJV9Mn8wQPOGg0qgxjmc3gjYuglXX+pfaKVjnKQcP+7s7qJch\r\niix7jinB+LfMGOHEMEb1Q47HZGTXQFoMz5D3/oEiID8Qf8fswO1yk/FV8JRJ\r\n78ppY2wwJ904h1bTYYFbQvETZBtRupIkVtq0+lyw7iJhxPyptsXBf/d1mnXn\r\ndhgbwaPVx9Z2nmJARAtgAVj4nShYjvXuM/nuzOoySo3vLjS4lTcUD+56u+72\r\n3hQG28B8DC8usopDSo0yn/r24hRnIV6VYhqq6WYO2kfwkwGA+eJACz/V5b9Y\r\nnblrnhOgOcrYBjcOj9YBriGN3FWt8Z9frFWbF706vmr7j6kSdMWMXK/qSyl4\r\nyeO+ogbss4LaoKvSCb3Z9OfDn/k/42j0mjI=\r\n=BQiu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBYb8sMen258tOdOPQY8lSX+sdZH2OI99UG+mrAZ2f3qAiEA0A0KMRSh1t5QrVPyqrMfsPez/CQ8YpSFAxjHlgdzTuY="}]},"_npmUser":{"name":"yu.team","email":"pg98@vip.qq.com"},"directories":{},"maintainers":[{"name":"yu.team","email":"pg98@vip.qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-to-ast_0.0.4_1648541938622_0.8479246740185549"},"_hasShrinkwrap":false},"0.0.5":{"version":"0.0.5","license":"MIT","keywords":["ast","html to ast"],"main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/byoungd/html-to-ast.git"},"typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"devDependencies":{"@size-limit/preset-small-lib":"^7.0.5","size-limit":"^7.0.5","tsdx":"^0.14.1","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"name":"html-to-ast","author":{"name":"byoungd"},"module":"dist/htmltoast.esm.js","size-limit":[{"path":"dist/htmltoast.cjs.production.min.js","limit":"10 KB"},{"path":"dist/htmltoast.esm.js","limit":"10 KB"}],"exports":{".":{"import":"./dist/html-to-ast.esm.js","require":"./dist/index.js"}},"gitHead":"6b7332acff7e03579131e1721e951200b8abee0a","description":"Lightweight approach to enable quickly parsing HTML into an AST and stringify'ing it back to the original string.","bugs":{"url":"https://github.com/byoungd/html-to-ast/issues"},"homepage":"https://github.com/byoungd/html-to-ast#readme","_id":"html-to-ast@0.0.5","_nodeVersion":"14.18.3","_npmVersion":"6.14.15","dist":{"integrity":"sha512-2l2NXYth4Y7oJK9QVmSCFyorAMssqA+6W5JOLaK3xrnANBRUSl/IEI2r3q+4Y35YYf/nCxCdc1EVUzo5wNLf8A==","shasum":"e9122617bbbc0f0aa24f58556ac0e8323873681c","tarball":"https://registry.npmjs.org/html-to-ast/-/html-to-ast-0.0.5.tgz","fileCount":26,"unpackedSize":76490,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQsbzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq2+hAAjdNescZlJ9auuPWVnE9rkKOPWPOrVTCLb8B07ZgdnGCXGBKt\r\nr/nxdakALzmQpNK3XjBo85p8/F2wtuqtZNWcJQdljXg6g56KIZhqyat/wpvC\r\nskiG+Xi+5kjwbSW2+S87Bg82PzB2iB6SAeZUEYaJcllLtCc1TGcY4hU6GAJB\r\nYQ0KbXpE4pitPfO6gPxmdBzXd7RVXs00a3+km2C4L23gNiyvysUmyVWOL8uq\r\nfNgXsaVNSWfBy22IzrtBU4p/B4FiMITvWCpFo4MUR6lajbl2TshQeCLzb3yz\r\nYpGPwC/uTEAhNt4L2OQwgq7YLwSerTN8c9JBI/YX29iF1sSh76eWXfkmbHhL\r\nVl//6Bxo9hCPsEQWRU5bvNwvbSlfzXjzIUQsMPV4h++B8HUGfNgxlmT834Wr\r\nI0wKpWekakqs2KsAM57YnUGDrwtzc5rXLXntB8HxPdqSpJOK5aUG81V3XdgR\r\nP25GhqfgVyHFdHqCqcPrJbUJvt4vsakN3wN0GhwSY+lUVBVZT15zowq/zZpc\r\nTHtXxSVFAXOOA48SoOsMyUF0I+LXi0WylY+9qisgZ/todR7ab4vuJYdCxbL0\r\nKLDi9S1ry9yM7p71zqJPsCuFNufmPTMn2JMlOkWKZSjDgSvtJBT12DpFOS/a\r\nHvvt7CeZq2x9anUlvLOa+iuxX0579UmAre0=\r\n=/5wE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFjLjgGhvCvoi4xdaFlL/AVefF//WsmuG3jWyFSX352AIgQR+/XeKqUKMERHOvhwTEEg1Y+ffy2mv3cx4Wf9To6iE="}]},"_npmUser":{"name":"yu.team","email":"pg98@vip.qq.com"},"directories":{},"maintainers":[{"name":"yu.team","email":"pg98@vip.qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-to-ast_0.0.5_1648543473713_0.2751973052749497"},"_hasShrinkwrap":false},"0.0.6":{"version":"0.0.6","license":"MIT","keywords":["ast","html to ast"],"main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/byoungd/html-to-ast.git"},"typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"devDependencies":{"@size-limit/preset-small-lib":"^7.0.5","size-limit":"^7.0.5","tsdx":"^0.14.1","tslib":"^2.3.1","typescript":"^4.5.4"},"peerDependencies":{},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"name":"html-to-ast","author":{"name":"byoungd"},"module":"dist/htmltoast.esm.js","size-limit":[{"path":"dist/htmltoast.cjs.production.min.js","limit":"10 KB"},{"path":"dist/htmltoast.esm.js","limit":"10 KB"}],"exports":{".":{"import":"./dist/html-to-ast.esm.js","require":"./dist/index.js"}},"gitHead":"4abed451c5f273f02b6fca914782be2962819aba","description":"Lightweight approach to enable quickly parsing HTML into an AST and stringify'ing it back to the original string.","bugs":{"url":"https://github.com/byoungd/html-to-ast/issues"},"homepage":"https://github.com/byoungd/html-to-ast#readme","_id":"html-to-ast@0.0.6","_nodeVersion":"14.18.3","_npmVersion":"6.14.15","dist":{"integrity":"sha512-gAq/8l6laJ8cTufIhh9lMvonShc8xBzAth+t7yK6oDla8rMVGKyYqToa7HgZyPKyi1KTX+HBTvQg2uQ3wc7Q9w==","shasum":"d3c2b84d7e1dd38b3a1295e2ea5c0600964c64c6","tarball":"https://registry.npmjs.org/html-to-ast/-/html-to-ast-0.0.6.tgz","fileCount":26,"unpackedSize":76670,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQtCIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+qQ//QPkAlpeTrMp2npL/jurMJ6dunKTCiaRzYxtgn3cT/eeO0ZS6\r\n4iF9gSYaGdnUi9Ru23HskDKq+iqPVOzqqW/jgoxyPvZ9VDaO2PYqy231Pm7A\r\nRGxfeUutKq9WJ9BWm4XX/P64iVHyF9EQThdinABE8tfxhXZqjgxn3WJ6ivq9\r\nzbAt4mLItyns+TY1ldSuGtcFcTPh4HvUUhpaiKHA6tIQdv+p0OsevcWXJC35\r\nNBudtNy4mF0zZXvJWfPDktRnBwd1KkEKUEWimmdsSY/oRU8NLfHCiN7KcpQV\r\nzXmqHyvHCzmCcvrNPbFc6/tgyZDJaP9j65TlEse5rGJm+C68lijpaQHGZ75N\r\nw3MfVn2i+l3jj0bhpmvQSMNA5GDDJXPcplljds0bKVBHKZJ5HO7nzRus0tjB\r\nIh39tQQpEJBcbkWjQjdSPoFKZWZ9ShAX8YxXa4+CiFnXXk1v2mScHFyugHGy\r\nJywsIGLGSNaNyOYYGfZs8npbnAJc/OhnMQtgHeyuOSDd6R4BRxwCj8f4A2Uh\r\nuoxyd04BarQsKtAO2WQvRafNwt9etovZQsXi83w3+zHKmUeBJHKp9f3pqkXl\r\nuP+ql3p1N8Qv7JNNn3gH1d/540jlMfC/wINRg7o28RPvDYI/COCRoCXThp2u\r\n5z4z+Pvp+RA9pgHvxOgdO6/Nrl+v/6dYg00=\r\n=lQ+J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICyoeuVsxMWmwZ9+YjBJVQRgd2TmKtVQAl3VZACG1ZClAiAGwJrrFzhVXu1hISyIBs84q9ItXywspt6bUmLMa2IN7w=="}]},"_npmUser":{"name":"yu.team","email":"pg98@vip.qq.com"},"directories":{},"maintainers":[{"name":"yu.team","email":"pg98@vip.qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-to-ast_0.0.6_1648545928093_0.7718861518475988"},"_hasShrinkwrap":false}},"time":{"created":"2022-03-28T10:53:12.221Z","0.0.1":"2022-03-28T10:53:12.346Z","modified":"2022-05-05T07:13:07.666Z","0.0.2":"2022-03-28T10:58:13.280Z","0.0.3":"2022-03-28T11:00:31.300Z","0.0.4":"2022-03-29T08:18:58.757Z","0.0.5":"2022-03-29T08:44:35.125Z","0.0.6":"2022-03-29T09:25:28.382Z"},"maintainers":[{"name":"yu.team","email":"pg98@vip.qq.com"}],"description":"Lightweight approach to enable quickly parsing HTML into an AST and stringify'ing it back to the original string.","homepage":"https://github.com/byoungd/html-to-ast#readme","repository":{"type":"git","url":"git+https://github.com/byoungd/html-to-ast.git"},"author":{"name":"byoungd"},"bugs":{"url":"https://github.com/byoungd/html-to-ast/issues"},"license":"MIT","readme":"# html-to-ast\nLightweight approach to enable quickly parsing HTML into an AST and stringify'ing it back to the original string.\n\nFork of https://github.com/henrikjoreteg/html-parse-stringify and made type more safe.\n\n## How to use\n\n```bash\nnpm i html-to-ast\n\n# or yarn add html-to-ast\n# or pnpm add html-to-ast\n\n```\n\n## So why this?\n\nWell, there are other things React expects me to do if I use it that I don't like. Such as the custom templating and syntax you have to use.\n\nIf, hypothetically, you could instead diff an HTML string (generated by _whatever_ templating language of your choice) against the DOM, then you'd get the same benefit, sans React's impositions.\n\nThis may all turn out to be a bad idea altogether, but initial results seem promising when paired with [virtual-dom](https://github.com/Matt-Esch/virtual-dom).\n\nBut you can't just diff HTML strings, as simple strings, very easily, in order to diff two HTML node trees you have to first turn that string into a tree structure of some sort. Typically, the thing you generate from parsing something like this is called an AST (abstract syntax tree).\n\nThis lib does exactly that.\n\nIt has two methods:\n\n1. parse\n2. stringify\n\n## `.parse(htmlString, options)`\n\nTakes a string of HTML and turns it into an AST, the only option you can currently pass is an object of registered `components` whose children will be ignored when generating the AST.\n\n## `.stringify(AST)`\n\nTakes an AST and turns it back into a string of HTML.\n\n## What does the AST look like?\n\n\nSee comments in the following example:\n\n```typescript\nimport { parse } from 'html-to-ast'\n\n// this html:\nvar html = '<div class=\"oh\"><p>hi</p></div>'\n\n// becomes this AST:\nvar ast = parse(html)\n\nconsole.log(ast)\n/*\n{\n    // can be `tag`, `text` or `component`\n    type: 'tag',\n\n    // name of tag if relevant\n    name: 'div',\n    \n    // parsed attribute object\n    attrs: {\n        class: 'oh'\n    },\n\n    // whether this is a self-closing tag\n    // such as <img/>\n    voidElement: false,\n\n    // an array of child nodes\n    // we see the same structure\n    // repeated in each of these\n    children: [\n        {\n            type: 'tag',\n            name: 'p',\n            attrs: {},\n            voidElement: false,\n            children: [\n                // this is a text node\n                // it also has a `type`\n                // but nothing other than\n                // a `content` containing\n                // its text.\n                {\n                    type: 'text',\n                    content: 'hi'\n                }\n            ]\n        }\n    ]\n}\n*/\n```\n\n## the AST node types\n\n### 1. tag\n\nproperties:\n\n- `type` - will always be `tag` for this type of node\n- `name` - tag name, such as 'div'\n- `attrs` - an object of key/value pairs. If an attribute has multiple space-separated items such as classes, they'll still be in a single string, for example: `class: \"class1 class2\"`\n- `voidElement` - `true` or `false`. Whether this tag is a known void element as defined by [spec](http://www.w3.org/html/wg/drafts/html/master/syntax.html#void-elements).\n- `children` - array of child nodes. Note that any continuous string of text is a text node child, see below.\n\n### 2. text\n\nproperties:\n\n- `type` - will always be `text` for this type of node\n- `content` - text content of the node\n\n### 3. component\n\nIf you pass an object of `components` as part of the `options` object passed as the second argument to `.parse()` then the AST won't keep parsing that branch of the DOM tree when it one of those registered components.\n\nThis is so that it's possible to ignore sections of the tree that you may want to handle by another \"subview\" in your application that handles it's own DOM diffing.\n\nproperties:\n\n- `type` - will always be `component` for this type of node\n- `name` - tag name, such as 'div'\n- `attrs` - an object of key/value pairs. If an attribute has multiple space-separated items such as classes, they'll still be in a single string, for example: `class: \"class1 class2\"`\n- `voidElement` - `true` or `false`. Whether this tag is a known void element as defined by [spec](http://www.w3.org/html/wg/drafts/html/master/syntax.html#void-elements).\n- `children` - it will still have a `children` array, but it will always be empty.\n\n## license\n\nMIT","readmeFilename":"README.md","keywords":["ast","html to ast"]}