{"_id":"html-to-json-parser","_rev":"5-7da817533fe49f0ba7abd27dbf8489b0","name":"html-to-json-parser","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"html-to-json-parser","version":"1.0.0","description":"This library converts HTML to JSON tree","type":"module","source":"src/index.js","exports":{"require":"./dist/index.cjs","default":"./dist/index.modern.js"},"main":"./dist/index.cjs","module":"./dist/index.module.js","unpkg":"./dist/index.umd.js","scripts":{"build":"microbundle","dev":"microbundle watch","prepare":"husky install","lint":"eslint src test","test":"node --experimental-vm-modules node_modules/jest/bin/jest.js"},"repository":{"type":"git","url":"git+https://github.com/yousufkalim/html-to-json.git"},"keywords":["html","json","tree","html-to-json","html2json","dom","xmldmom","htmlparser"],"author":{"name":"Yousuf Kalim","email":"yousufkalim@outlook.com"},"license":"MIT","bugs":{"url":"https://github.com/yousufkalim/html-to-json/issues"},"homepage":"https://github.com/yousufkalim/html-to-json#readme","devDependencies":{"@commitlint/cli":"^17.1.2","commitlint-config-non-conventional":"^1.0.1","eslint":"^8.24.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","husky":"^8.0.0","jest":"^29.3.1","lint-staged":"^13.0.3","microbundle":"^0.15.1","prettier":"^2.7.1","pretty-quick":"^3.1.3"},"dependencies":{"xmldom":"^0.6.0"},"gitHead":"c2ae5fdeb9816a23dad99e77369faa8f46d44f89","_id":"html-to-json-parser@1.0.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-H06P+CLqFAQ4prk0U/jekchONhipNipcnlnGjU1nuXVNKW6P6hdu3bK0OdaChZbVic4CJ/ur4r5MagPbVfBNJA==","shasum":"22e237ed16c50d6d31aa0b8f9f5bac4e7e07ddbb","tarball":"https://registry.npmjs.org/html-to-json-parser/-/html-to-json-parser-1.0.0.tgz","fileCount":27,"unpackedSize":24057,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC/aG3lbUDiH0AgHxWRh00e/SE2K0wixpNt6+WcnkCabAiBz8ZLDZKIOPgaMovgZpYKDB9b6DEOTfTRtJG8qrslInw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmb5OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp07g/9GhE1nwwyXO5SuuXJ58AuigB7Hn+5Us6YK/8XloYhwDW05s6V\r\nFeksBdXdiUn0WqUWlqGIlTIgWcjDqcGIQME8mSk013lrE5LgLcuBlRef2y1z\r\nQmiZCXvY5zwceGh+oUSJiqY1xPCd6SHYXV5MG/WW+GsqWNbxmKGNxG0NoqsC\r\nb0GxQeKlLcHw9KzIBuAOBGprlNctpaWdgnsXiSsU/WJG0XWqeFFKyssRtAIJ\r\nmCCqEbO6LCib9J5++y11OAA021dGd3Z+dWXgZrWUngQMu3btf46xoCAfmv7G\r\noBY7HbEtAQK3gqEth/rxWzz94N+dLfOx+KUJ4XhHw8iJN1uHhin2c05zbtSv\r\nQxOMsJfgNcIud0F3DJUuFzBD1ViMqZxyNvmpaFJuWJb8MytDRedbzz2rviUe\r\nzHja5mmUZOa1D1gdfINpCSB923YFT5hkCR0dTvzDaIaHgvm8Gz5tExKLJ3Np\r\n6MxBdcbtJC4imLL+qlEoVWuPuPOyCKPu459PIhyRZGCPJiUKD9k2OrRq/mzp\r\nXvUKHvlSDWhmck/cvRZkW6B+6coz5v8V3GqqjvgxWWYIzAfZQm3nP+U3lh2q\r\nWEGkMS5t7nKU22agtmtMxjRyqzaChXJmJPuPnxxBHVaU5EXNHcFoG5YancEi\r\nYkEalv8wK1+cxw2tdHTX5v42sNHN2TvI4vc=\r\n=ipvC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"yousufkalim","email":"yousufkalim@outlook.com"},"directories":{},"maintainers":[{"name":"yousufkalim","email":"yousufkalim@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-to-json-parser_1.0.0_1671020110250_0.44565988429798"},"_hasShrinkwrap":false},"1.0.1":{"name":"html-to-json-parser","version":"1.0.1","description":"This library converts HTML to JSON tree","type":"module","source":"src/index.js","exports":{"require":"./dist/index.cjs","default":"./dist/index.modern.js"},"main":"./dist/index.cjs","module":"./dist/index.module.js","unpkg":"./dist/index.umd.js","scripts":{"build":"microbundle","dev":"microbundle watch","prepare":"husky install","lint":"eslint src test","test":"node --experimental-vm-modules node_modules/jest/bin/jest.js"},"repository":{"type":"git","url":"git+https://github.com/yousufkalim/html-to-json.git"},"keywords":["html","json","tree","html-to-json","html2json","dom","xmldmom","htmlparser"],"author":{"name":"Yousuf Kalim","email":"yousufkalim@outlook.com"},"license":"MIT","bugs":{"url":"https://github.com/yousufkalim/html-to-json/issues"},"homepage":"https://github.com/yousufkalim/html-to-json#readme","devDependencies":{"@commitlint/cli":"^17.1.2","commitlint-config-non-conventional":"^1.0.1","eslint":"^8.24.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","husky":"^8.0.0","jest":"^29.3.1","lint-staged":"^13.0.3","microbundle":"^0.15.1","prettier":"^2.7.1","pretty-quick":"^3.1.3"},"dependencies":{"xmldom":"^0.6.0"},"gitHead":"9a091dc1c90d435a7ef3b79582af42fada3de801","_id":"html-to-json-parser@1.0.1","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-QwDxOrGvUS8EgopxRnyXNaE0suoc1dJyB6RVF5KRut0cpviE1bu8r0B/gocHms3JoFKJYgN8igpDaKUW3RNkUw==","shasum":"2f53fe24dc3cef0db9c394f334be938292636caf","tarball":"https://registry.npmjs.org/html-to-json-parser/-/html-to-json-parser-1.0.1.tgz","fileCount":27,"unpackedSize":24118,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG6UmjEn7w+WtjDsWXJfO3uBvv7BfvWXrN/lSwNVJmuEAiEA8ycoGTdY8v8Fp72Ro3dMRDEg4X4OJcv705IJgYxJvas="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmb9pACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqtPQ//TNWsc9mBNIQydqjqvRrIfLDFJY228CsbhyMHQ6CVCbcMPuPi\r\n5BC6+pXxpdz3dDlx1dKmEmGQSzF4n3HRLjcQMZX4q76m6+6HyRmlLycfAuAP\r\nCxhf/RKZUWg4rKU4I0DzmgvO2osPZIC9WxPLJZEf3yg08H4PkzRjFPAJlsQP\r\nhH7399yZZohJRQ+Jbtm0jptTnVjzsdj/pwwXcqmzSc7EXcMHzzmXRE7fUfk+\r\n/0Fex8tI2bNRfa0LN2zXlgh/EEnUAADyXKkokWCeA5wAm6cFDDlSkXSyqPlc\r\n6n416d1qkH67DTDLh0+Y8YTt8G87GW7rzKO98BY8Ge/5dxpTTEOrhHinPG0V\r\nm6NuLJl1IjX7UnR8aGZ4nB7wsbOkZyox/u8FNc3PfDTeadmsK0cjzbHBKOlw\r\nyJMNGckI4Auh9UqPejfjd7PdX2GEZZhEMUBwobNn0uS5ua6c86TK5kwZVVst\r\nBQMBOVgXZ1XMqj0uFDn9UwkDITie/Jjc+a+LzZ3/Yp3N3C+vt6BUCIQcGPDp\r\nWS4jgScb072UZIpx+XVl0dKJ8+oXfzajKB8FFCE2JkQoobmmUwMhe7ing+1l\r\n4uaJCirct81CpHY5nowYI9Ri0WMt6pw6VCXLsrRXEMASTYN7u0auJrw9JoVz\r\nCnso9soM4YiKeaAkYUykutrPeO0H9HOofZ0=\r\n=tQlA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"yousufkalim","email":"yousufkalim@outlook.com"},"directories":{},"maintainers":[{"name":"yousufkalim","email":"yousufkalim@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-to-json-parser_1.0.1_1671020393537_0.9514583266707213"},"_hasShrinkwrap":false},"1.0.2":{"name":"html-to-json-parser","version":"1.0.2","description":"This library converts HTML to JSON tree","type":"module","source":"src/index.ts","exports":{"require":"./dist/index.cjs","default":"./dist/index.modern.js"},"main":"./dist/index.cjs","module":"./dist/index.module.js","unpkg":"./dist/index.umd.js","types":"./dist/index.d.ts","scripts":{"build":"rm -rf ./dist && microbundle --tsconfig ./tsconfig.json","dev":"microbundle watch","prepare":"husky install","lint":"eslint src test","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/yousufkalim/html-to-json.git"},"keywords":["html","json","tree","html-to-json","html2json","dom","xmldmom","htmlparser"],"author":{"name":"Yousuf Kalim","email":"yousufkalim@outlook.com"},"license":"MIT","bugs":{"url":"https://github.com/yousufkalim/html-to-json/issues"},"homepage":"https://github.com/yousufkalim/html-to-json#readme","devDependencies":{"@commitlint/cli":"^17.1.2","@types/jest":"^29.2.5","@types/xmldom":"^0.1.31","@typescript-eslint/eslint-plugin":"^5.0.0","commitlint-config-non-conventional":"^1.0.1","eslint":"^8.24.0","eslint-config-prettier":"^8.5.0","eslint-config-standard-with-typescript":"^24.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-n":"^15.0.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-promise":"^6.0.0","husky":"^8.0.0","jest":"^29.3.1","lint-staged":"^13.0.3","microbundle":"^0.15.1","prettier":"^2.7.1","pretty-quick":"^3.1.3","ts-jest":"^29.0.3","typescript":"*"},"dependencies":{"xmldom":"^0.6.0"},"gitHead":"bf0f7a8e5ca9e6cfd74f48b44505c6549c900ee3","_id":"html-to-json-parser@1.0.2","_nodeVersion":"16.13.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-UimB8Qmkzzuac9Slgk1gC5GOk8B8ihPiqVclcXMk0lRvRrHyfnSqTXcA/CPV+CB4MCwcu3h8JKkDRsgQ4wIXjA==","shasum":"3de96497af0012a33ca418733e1dfb508a72323c","tarball":"https://registry.npmjs.org/html-to-json-parser/-/html-to-json-parser-1.0.2.tgz","fileCount":30,"unpackedSize":28987,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+XkkgFo9L9aNjykGQoW1M6v5lVDzKvKrrunwKqPa9PgIhAPPsAqF2NznzEFFOMKg/7P1AXyrE5gHkeyHnlT0+Baqu"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvrJcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrhEA//VHRlnwtzo+YItKbFKt/ZdFttZlf6Heg5Mx+XEV6ERmeFo6CT\r\nsC7S2OWx7tP8A+Jqv/PHAShWRg6/L/Dv2pyOOzY8NhGO4BHiRWolnDU434Ls\r\ngXAcTG1qI//IoZLCbInkKk+FUfznrzHxvJPGrDzucEqsv1HZn/2lKFVXGlcB\r\nhuCSTjGIsL5UfY0uDSUZfP3rDBDxa/ndcPWhPjYJ4/qD+lkwluEEva0wgRok\r\ngvtpdhRXGMFDyq30l+VHUwRqh554W4rq6FQE2awhvRvyPewtmFpoq6pw/+AF\r\nT7HAflKTMtRiIZoltmFFC7+Y3PUA6TOxDYhAmk2v239vnAi+3z4QwJ7wK3a3\r\n+iyK38fosi7zaa/n0tZR9a975mCj12+F/v2+d1u2inQZsUiyBaSBnMbBZkPM\r\nstfS1xewSZURLSxd5ErY9mehVtXH5TeUSCUG+nDO99r0+LDfS5mqIqlQRbV9\r\nrlYzUvNfU1FpJPc2Y/8n2H7JV8wYQPCuMorNa3HgFWdfN2mI1rWULsnYPcjJ\r\ncPF0cg/usCwAvY6C1rim8NWYgayHPjjekqY9ajPknPgN9XpY7DKCv0kJYuUK\r\ncJqEIndEL4d7KBLLC5FIhtWEtIpcfX3gYvDpV6AXOfmplRTdTs7/tGrJ/DFi\r\nIG1HSyT9/Iwl7FAnmaaLfdhE9j70myC2hto=\r\n=qjve\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"yousufkalim","email":"yousufkalim@outlook.com"},"directories":{},"maintainers":[{"name":"yousufkalim","email":"yousufkalim@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-to-json-parser_1.0.2_1673441884025_0.4745496624817762"},"_hasShrinkwrap":false},"1.1.0":{"name":"html-to-json-parser","version":"1.1.0","description":"This library converts HTML to JSON or JSON to HTML tree","type":"module","source":"src/index.ts","exports":{"require":"./dist/index.cjs","default":"./dist/index.modern.js"},"main":"./dist/index.cjs","module":"./dist/index.module.js","unpkg":"./dist/index.umd.js","types":"./dist/index.d.ts","scripts":{"build":"rm -rf ./dist && microbundle --tsconfig ./tsconfig.json","dev":"microbundle watch","prepare":"husky install","lint":"eslint src test","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/yousufkalim/html-to-json.git"},"keywords":["html","json","tree","html-to-json","html2json","dom","xmldmom","htmlparser"],"author":{"name":"Yousuf Kalim","email":"yousufkalim@outlook.com"},"license":"MIT","bugs":{"url":"https://github.com/yousufkalim/html-to-json/issues"},"homepage":"https://github.com/yousufkalim/html-to-json#readme","devDependencies":{"@commitlint/cli":"^17.1.2","@types/jest":"^29.2.5","@types/xmldom":"^0.1.31","@typescript-eslint/eslint-plugin":"^5.0.0","commitlint-config-non-conventional":"^1.0.1","eslint":"^8.24.0","eslint-config-prettier":"^8.5.0","eslint-config-standard-with-typescript":"^24.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-n":"^15.0.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-promise":"^6.0.0","husky":"^8.0.0","jest":"^29.3.1","lint-staged":"^13.0.3","microbundle":"^0.15.1","prettier":"^2.7.1","pretty-quick":"^3.1.3","ts-jest":"^29.0.3","typescript":"*"},"dependencies":{"xmldom":"^0.6.0"},"gitHead":"38772a7e866786ba6183888a0330edcfb2ee7065","_id":"html-to-json-parser@1.1.0","_nodeVersion":"16.13.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-j6JiUBhIQkC+guahmh0VKwQRrnsROpUaRWAQyRlu5tp6atQg9ljeU70eBtpHSJwNALFNo//VOozvif7AQlfOtA==","shasum":"a81fe1b5b7d02b071cf1f8210f4808cf7342b4c3","tarball":"https://registry.npmjs.org/html-to-json-parser/-/html-to-json-parser-1.1.0.tgz","fileCount":36,"unpackedSize":46667,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmv9S+IfsGCdYQPuUO6/uIeY8j+xPm/HhlaAQ82Ouw1wIhANBXVYM+V6zEprBnsCam4UfPtSgv2O1I3cKaQOv/qRxO"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj22hwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGVw/+N9F7lniQhqDnhUU/IslTB449JrkSjf7+sH9Nr+fb3a7gYYYS\r\ndcMJgHlyUYAr2X/Gb/P6yn+43HiEwZWUR4v2vsoCoz2/xfMq20AZ4Bkte4KB\r\nu3Ehe2cknHbUJkad36zRuOQ6siyccWB19WSQx2IZ+nZ3pnePy9eXwEnG6LXf\r\nTM/jQVquL3g6bNzQDvY4E3RVpxFhxJkXIX3d/MlisbYNB5+xq3ZskrOxnzG6\r\nEzs4LeU7349FktTX0q8i92IGfdUNdvkwu+xz4KgB1ZcKcLCvedQjL/Ni0lHx\r\nGrNjzFmEIIJoZjSW12geEoOKVXxGRrbv1pwyZ3NGTCWThGaJ4WgguHRTp7HM\r\nBPBsHnRRa/39HEABm2lz+ezPjLdseWUkS7yHXHfg2Gli8u8YOTaC5QYSkX3o\r\n/LavuIysN5SqH5V88hSG0Fra+cuUDop6H9WQ+DE0DJWfylnAYogX0RxGX1bC\r\n06gHUC5dlqF8J+O8cy7BQCUIUzu3Sc/Dv6P4uDgELIBnTRYnPG6LKdVGZctY\r\nsmI02iOdrq7Tb6oEINFw7HAneEFd8DcSQtw/r7rvXcSzoG+eXX9uRfIyx0AZ\r\nXcYBBV7UJNm0fhN5iSFwOcf3SA4iJ+WJXoFCjeJ1vx75e2q284j9XTTjNlPM\r\nKRAPd43jKmnQLtxCFCzNvCHA6U1WW/eLMGw=\r\n=/zeH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"yousufkalim","email":"yousufkalim@outlook.com"},"directories":{},"maintainers":[{"name":"yousufkalim","email":"yousufkalim@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-to-json-parser_1.1.0_1675323503876_0.856584740837274"},"_hasShrinkwrap":false},"2.0.0":{"name":"html-to-json-parser","version":"2.0.0","description":"This library converts HTML to JSON or JSON to HTML tree","type":"module","source":"src/index.ts","exports":{"require":"./dist/index.cjs","default":"./dist/index.modern.js"},"main":"./dist/index.cjs","module":"./dist/index.module.js","unpkg":"./dist/index.umd.js","types":"./dist/index.d.ts","scripts":{"build":"rm -rf ./dist && microbundle --tsconfig ./tsconfig.json","dev":"microbundle watch","prepare":"husky install","lint":"eslint src test","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/yousufkalim/html-to-json.git"},"keywords":["html","json","tree","html-to-json","html2json","dom","xmldmom","htmlparser"],"author":{"name":"Yousuf Kalim","email":"yousufkalim@outlook.com"},"license":"MIT","bugs":{"url":"https://github.com/yousufkalim/html-to-json/issues"},"homepage":"https://github.com/yousufkalim/html-to-json#readme","devDependencies":{"@commitlint/cli":"^17.1.2","@types/jest":"^29.2.5","@types/xmldom":"^0.1.31","@typescript-eslint/eslint-plugin":"^5.0.0","commitlint-config-non-conventional":"^1.0.1","eslint":"^8.24.0","eslint-config-prettier":"^8.5.0","eslint-config-standard-with-typescript":"^24.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-n":"^15.0.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-promise":"^6.0.0","husky":"^8.0.0","jest":"^29.3.1","lint-staged":"^13.0.3","microbundle":"^0.15.1","prettier":"^2.7.1","pretty-quick":"^3.1.3","ts-jest":"^29.0.3","typescript":"*"},"dependencies":{"xmldom":"^0.6.0"},"_id":"html-to-json-parser@2.0.0","gitHead":"56451da67341c1e0532975f246feaeea3aae6540","_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-x83te6MTtOGupRk0ljjWsDaBTq5VoyWWUT6yOZJFTrbLa59fWSXIlK4F3H3Pgtsa8OBf8cgBTg92nN3aUazVGA==","shasum":"618e380313c8a242222e17bd036d5589fb3623c9","tarball":"https://registry.npmjs.org/html-to-json-parser/-/html-to-json-parser-2.0.0.tgz","fileCount":36,"unpackedSize":46790,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG+kE7ixT7cu/uV24IkwGd1I2+jr/iCdegOTrgsX/tENAiEAoKh+ze/oX2g4dYoLH9lXUFlF5+4Hu/4JGbyq4uPI8LU="}]},"_npmUser":{"name":"yousufkalim","email":"yousufkalim@outlook.com"},"directories":{},"maintainers":[{"name":"yousufkalim","email":"yousufkalim@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-to-json-parser_2.0.0_1698827117823_0.8304774229166545"},"_hasShrinkwrap":false},"2.0.1":{"name":"html-to-json-parser","version":"2.0.1","description":"This library converts HTML to JSON or JSON to HTML tree","type":"module","source":"src/index.ts","exports":{"require":"./dist/index.cjs","default":"./dist/index.modern.js"},"main":"./dist/index.cjs","module":"./dist/index.module.js","unpkg":"./dist/index.umd.js","types":"./dist/index.d.ts","scripts":{"build":"rm -rf ./dist && microbundle --tsconfig ./tsconfig.json","dev":"microbundle watch","prepare":"husky install","lint":"eslint src test","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/yousufkalim/html-to-json.git"},"keywords":["html","json","tree","html-to-json","html2json","dom","xmldmom","htmlparser"],"author":{"name":"Yousuf Kalim","email":"yousufkalim@outlook.com"},"license":"MIT","bugs":{"url":"https://github.com/yousufkalim/html-to-json/issues"},"homepage":"https://github.com/yousufkalim/html-to-json#readme","devDependencies":{"@commitlint/cli":"^17.1.2","@types/jest":"^29.2.5","@types/xmldom":"^0.1.31","@typescript-eslint/eslint-plugin":"^5.0.0","commitlint-config-non-conventional":"^1.0.1","eslint":"^8.24.0","eslint-config-prettier":"^8.5.0","eslint-config-standard-with-typescript":"^24.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-n":"^15.0.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-promise":"^6.0.0","husky":"^8.0.0","jest":"^29.3.1","lint-staged":"^13.0.3","microbundle":"^0.15.1","prettier":"^2.7.1","pretty-quick":"^3.1.3","ts-jest":"^29.0.3","typescript":"*"},"dependencies":{"@xmldom/xmldom":"^0.8.10"},"_id":"html-to-json-parser@2.0.1","gitHead":"b59a89a2e4a01327f99513c05621fd521526306c","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-M5m9PnTRbIQCSpj13mecIUThKgWnxDhjEYCjo2PgadXUbYhvJsjY/tyf5AeJDnw0/UPRVAh85VzCxH1bXEX9rw==","shasum":"dcda69d0e6ff56a6be83432b4a4e18fcfda49da9","tarball":"https://registry.npmjs.org/html-to-json-parser/-/html-to-json-parser-2.0.1.tgz","fileCount":36,"unpackedSize":46996,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6/maxhflZFyiFOK94p7TLVN/59q5zWgMhbuC/IDdIDgIgCYVCloSoipMzkLhkyj3nDl1TM2ppdp2A6BCCSkToSCA="}]},"_npmUser":{"name":"yousufkalim","email":"yousufkalim@outlook.com"},"directories":{},"maintainers":[{"name":"yousufkalim","email":"yousufkalim@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-to-json-parser_2.0.1_1708408126237_0.023687163710533587"},"_hasShrinkwrap":false}},"time":{"created":"2022-12-14T12:15:10.250Z","1.0.0":"2022-12-14T12:15:10.530Z","modified":"2024-02-20T05:48:46.855Z","1.0.1":"2022-12-14T12:19:53.725Z","1.0.2":"2023-01-11T12:58:04.191Z","1.1.0":"2023-02-02T07:38:24.095Z","2.0.0":"2023-11-01T08:25:18.070Z","2.0.1":"2024-02-20T05:48:46.451Z"},"maintainers":[{"name":"yousufkalim","email":"yousufkalim@outlook.com"}],"description":"This library converts HTML to JSON or JSON to HTML tree","homepage":"https://github.com/yousufkalim/html-to-json#readme","keywords":["html","json","tree","html-to-json","html2json","dom","xmldmom","htmlparser"],"repository":{"type":"git","url":"git+https://github.com/yousufkalim/html-to-json.git"},"author":{"name":"Yousuf Kalim","email":"yousufkalim@outlook.com"},"bugs":{"url":"https://github.com/yousufkalim/html-to-json/issues"},"license":"MIT","readme":"# HTML to JSON\n\nThis library is capable to convert HTML string/element to JSON/JS Object or JSON to HTML.\n\n## Features\n\n- Convert HTML to JSON or JavaScript Object\n- Convert JSON or JavaScript Object to HTML\n\n## Example\n**From**\n```html\n    <div class=\"container\">\n      <ul>\n          <li>Hello <strong>World</strong></li>\n      </ul>\n    </div>\n```\n\n**To**\n```json\n    {\n      \"type\": \"div\",\n      \"attributes\": {\n        \"class\": \"container\"\n      },\n      \"content\": [\n        {\n          \"type\": \"ul\",\n          \"content\": [\n            {\n              \"type\": \"li\",\n              \"content\": [\n                \"Hello \",\n                {\n                  \"type\": \"strong\",\n                  \"content\": [\n                    \"World\"\n                  ]\n                }\n              ]\n            }\n          ]\n        }\n      ]\n    }\n```\n\n## Installation\n\nInstall html-to-json-parser with npm/yarn\n\n```bash\n  npm install html-to-json-parser // npm\n  yarn add html-to-json-parser // yarn\n```\n\n## Usage/Examples\n\nConvert HTML to JSON or JavaScript Object\n\n```javascript\n// Imports\nimport { HTMLToJSON } from 'html-to-json-parser'; // ES6\nconst { HTMLToJSON } = require('html-to-json-parser'); // CommonJS\n\n// Data\nconst element = '<div><ul><li>Hello <strong>World</strong></li></ul></div>'; // HTML string\nconst element = document.querySelector('div'); // HTML element\n\n// Conversion\nlet result = await HTMLToJSON(element, true); // Default: false - true: return JSON, false: return JS Object\n```\n\nConvert JSON to HTML using JavaScript\n\n```javascript\n// Imports\nimport { JSONToHTML } from 'html-to-json-parser'; // ES6\nconst { JSONToHTML } = require('html-to-json-parser'); // CommonJS\n\n// Data: JSON or JS Object\nconst data = {\n  type: \"div\",\n  attributes: {\n    class: \"container\"\n  },\n  content: [\n    {\n      type: \"ul\",\n      content: [\n        {\n          type: \"li\",\n          content: [\n            \"Hello \",\n            {\n              type: \"strong\",\n              content: [\n                \"World\"\n              ]\n            }\n          ]\n        }\n      ]\n    }\n  ]\n};\n\n// Conversion\nlet result = await JSONToHTML(data, false); // Default: true - true: return HTML String, false: return HTML Element\n```\n\nConvert JSON to HTML using TypeScript\n\n```typescript\n// Imports\nimport { JSONToHTML, JSONType } from 'html-to-json-parser'; // ES6\nconst { JSONToHTML, JSONType } = require('html-to-json-parser'); // CommonJS\n\n// Data: JSON or JS Object\nconst data: JSONType = {\n  type: \"div\",\n  attributes: {\n    class: \"container\"\n  },\n  content: [\n    {\n      type: \"ul\",\n      content: [\n        {\n          type: \"li\",\n          content: [\n            \"Hello \",\n            {\n              type: \"strong\",\n              content: [\n                \"World\"\n              ]\n            }\n          ]\n        }\n      ]\n    }\n  ]\n};\n\n// Conversion\nlet result = await JSONToHTML(data, false); // Default: true - true: return HTML String, false: return HTML Element\n```\n\n## Contributing\n\n- Fork it!\n- Create your feature branch: `git checkout -b my-new-feature`\n- Commit your changes: `git commit -am 'Add some feature'`\n- Push to the branch: `git push origin my-new-feature`\n- Submit a pull request :D\n\n## Author\n\n**html-to-json-parser** © [Yousuf](https://github.com/yousufkalim)  \nAuthored and maintained by Yousuf Kalim.\n\n> GitHub [@yousufkalim](https://github.com/yousufkalim) · LinkedIn [@yousufkalim](https://www.linkedin.com/in/yousufkalim/)\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)","readmeFilename":"README.md"}