{"_id":"hast-util-from-string","_rev":"15-5ee62f2c3b6f91272b1cced106147b00","name":"hast-util-from-string","dist-tags":{"latest":"3.0.1"},"versions":{"1.0.0":{"name":"hast-util-from-string","version":"1.0.0","keywords":["rehype","hast","string"],"author":{"url":"http://wooorm.com","name":"Titus Wormer","email":"tituswormer@gmail.com"},"license":"MIT","_id":"hast-util-from-string@1.0.0","maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"bugs":{"url":"https://github.com/wooorm/rehype-minify/issues"},"dist":{"shasum":"1a2c3a0cf74c65fc48ef71ec50ce7e4878491e34","tarball":"https://registry.npmjs.org/hast-util-from-string/-/hast-util-from-string-1.0.0.tgz","integrity":"sha512-n9Xd9dHc0WXnDN6lV3An+KJ1O8HW58nLOGrZRtukeYTk0d5T/nR8omcTXCySCp+58uaZw6+3GQ9h+gBnMJz4AQ==","signatures":[{"sig":"MEUCIEXl2KlG4MiU2r4PoFVzhd7UNAf6zJbznPOUda837suSAiEAiDWHMxIwveZosuLkdf/9UqOkIa+WFWOmwQGNuixTzwo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"1a2c3a0cf74c65fc48ef71ec50ce7e4878491e34","scripts":{},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"repository":{"url":"https://github.com/wooorm/rehype-minify/tree/master/packages/hast-util-from-string","type":"git"},"_npmVersion":"3.10.6","description":"Set the plain-text value of a node","directories":{},"_nodeVersion":"6.3.0","_npmOperationalInternal":{"tmp":"tmp/hast-util-from-string-1.0.0.tgz_1473340374571_0.9269440455827862","host":"packages-16-east.internal.npmjs.com"}},"1.0.1":{"name":"hast-util-from-string","version":"1.0.1","keywords":["rehype","hast","string"],"author":{"url":"http://wooorm.com","name":"Titus Wormer","email":"tituswormer@gmail.com"},"license":"MIT","_id":"hast-util-from-string@1.0.1","maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"bugs":{"url":"https://github.com/wooorm/rehype-minify/issues"},"xo":false,"dist":{"shasum":"f522812c36bb8ec447528548d126767db311fad1","tarball":"https://registry.npmjs.org/hast-util-from-string/-/hast-util-from-string-1.0.1.tgz","integrity":"sha512-W291XYtmyaNvrERJXKc7O6uK/6W3ocw1Uk0YPyqG8H/MgadwjJ0lg09FChPcZhjqHxaGJP/unVfcuannUMQIgA==","signatures":[{"sig":"MEUCIG0V6pqPSMHqKkVb5UNtMGwcX0oNPOrbBPTpWZc69wGfAiEAjvb33xuGjjQpPz5SWAF6I9XyWDQ9hYA8Lqtk2eGzyS4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"files":["index.js"],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"repository":{"url":"https://github.com/wooorm/rehype-minify/tree/master/packages/hast-util-from-string","type":"git"},"_npmVersion":"5.1.0","description":"Set the plain-text value of a node","directories":{},"_nodeVersion":"8.1.2","_npmOperationalInternal":{"tmp":"tmp/hast-util-from-string-1.0.1.tgz_1500929331502_0.980803371174261","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"hast-util-from-string","version":"1.0.2","keywords":["unified","rehype","hast","string"],"author":{"url":"https://wooorm.com","name":"Titus Wormer","email":"tituswormer@gmail.com"},"license":"MIT","_id":"hast-util-from-string@1.0.2","maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"bugs":{"url":"https://github.com/rehypejs/rehype-minify/issues"},"xo":false,"dist":{"shasum":"7861ae5be7abe5cc115c0d93c14ab1fa3fe2681a","tarball":"https://registry.npmjs.org/hast-util-from-string/-/hast-util-from-string-1.0.2.tgz","fileCount":3,"integrity":"sha512-UPZiw0UhWGWrk9+57w+/vi0m0MqhcnZJhOkKDxkx4pWw2nzx0lIDtyybIpPgYxp02J9TTQZI+ugpCl6UTTzTEg==","signatures":[{"sig":"MEUCIQDsoXu3RgFPNsf/KsMx/Ev5QbHis3C1IrppOPbQzCh9wAIgNXWgd0FvvlanEqMAjka7sk1Fe7Dd57KE9caaPvRmPig=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc8n/5CRA9TVsSAnZWagAAXn0P/jSy01PgBozrN4mDVnbP\nUQWwaxQlC9PgE5PEWfwjbbO2auw2HY4fgSF+vwTCOIXICbfP6DTG8vdOQrJW\nI8OseLNcWToO/0+2x6keFipgL3W2ZD9RwjNpJCfhmWCDrjgSrQsh2UJalFbd\nx8RiKEmKBUZjcWhFpk1/B+yp/HEJ1Y7CaYqh+mxvqicIeZcLlOU4Omrro4+d\n4uHqphaQvIXtTMNXVfuUTuXCl/JAOJ2Lc4403F9gLAmjmKxqbWRYuu5tqqWD\ngG4zflPhrjS1pJ7EkJ9xmSbKCrs+2mOBmfXwb7PfU+1HHSdqU39H1RE6XYSf\nNJMfRC1g8LCQOWnk4ZZL2SJZG/lmzjJkOi9hEOp8TP598Mut6kWA1XDk4W9t\n7oQ3BDFfDQgTmjarvQ7oOWENlK7ElXr2b++BFdbF1rQWL4aU0ga2HRH5cw9M\n8uCaoy8XTcedPlHSFa8dP7dDtBhAXWhy3XDyWMWUmmF7HBoMvo79vsAMfuJg\nO2d64pB2+cw92ju6YenmXRCcw5+Toaitx59A9ksKc9Wfoo0I1R1BquMxwSDD\ntbIqJ6U4fLOa3obEBloiXPqCE35R1N1FsGD612JjiNp7rh+6arnpS8OTnPfq\ncDLFDqKWMSYiC8BbDVCH+rP6+nYN4uBtGz+Jy7oKFAZBu7dqVvvfz8gkkU9X\nny8L\r\n=MpwX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"repository":{"url":"https://github.com/rehypejs/rehype-minify/tree/master/packages/hast-util-from-string","type":"git"},"_npmVersion":"6.9.0","description":"hast utility to set the plain-text value of a node","directories":{},"_nodeVersion":"12.2.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hast-util-from-string_1.0.2_1559396344918_0.41804074121337775","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"hast-util-from-string","version":"1.0.3","keywords":["unist","hast","hast-util","util","utility","html","string","text","content"],"author":{"url":"https://wooorm.com","name":"Titus Wormer","email":"tituswormer@gmail.com"},"license":"MIT","_id":"hast-util-from-string@1.0.3","maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"bugs":{"url":"https://github.com/rehypejs/rehype-minify/issues"},"xo":false,"dist":{"shasum":"c3da22ea64112c66f5950739681f706aa3a95699","tarball":"https://registry.npmjs.org/hast-util-from-string/-/hast-util-from-string-1.0.3.tgz","fileCount":3,"integrity":"sha512-phs02NrXS+dNShcW9E32F1c95V0sM6jpHV/Hbqha21ge3bprxD0CtSxDmPTlpwMIOKo/YdHpSeM465AfglbT5Q==","signatures":[{"sig":"MEUCIQDzywAssaYPcXc32GhYBeyTnmhstpru4G+B7nxOYw9HygIgIkh0rn+IH6opTtnmGMtEitXaDCt4ZbDAPv1RXJyojgg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5037,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedlyICRA9TVsSAnZWagAAxj8P/AqlcVIhCGUMdtWEyuz2\nIow3udkW3LVpsfVqZ7G06SM1xdIB5NT2mO0Pg1t9R3Oxvl1hnfrgbYG4Q71p\nik1lPgziq2tZ40M5ZQ+jxijT4IfRR3eNxcvz0WEcxWnjxAVCiuQlLvgkeDuc\nRcv3ItikX0uZX9+ma35p1mBq3mgTq1abvuytbhwKpjlhb0s/6VO5u7OW1hJU\ngbV3VcPOig+9joPptaM/6ksYSkiiBea9To96DfbAudfUejrXQa57pF4QHWAZ\nlhxzFkvsIAe3RCpxdd+NqerC38BBfTIKa9zBdCMhCH39XYrBl6Ut6SYxBpeD\nm1or1P+e+nro3VgtyMxFsz65RBvZrWPDdYQqZOaLQwSifQHhUUCC+o3RhfWC\nD44Mb3iGNlRvve5g1D5cFGRwXu+7bXZEnFXgohttlNwZlTfUjdr/dADnjuDY\nmdwtsaVjpEhqZpWQSjQDkdXDCW6E9hVBSp3P0RjGi084uZKp46W+KZVEbElc\ngBSgAqyNaHfCvyKDwAzAF18bvZWxuGJab5ZvAtQwFu+xOs8Ut4r94BticQWP\n2DXQCEFuUjYbiM5RPyZqN5IUVsmLehfXM7WFI0qcj/ZCEU0hwFKNW3MzkTCK\nTRN6eWCybD/0+leA8/EI15geahYKEgAP9EzjYU1wReIXs6oh3vqlZ7AXGk2m\n+ntT\r\n=Gf8G\r\n-----END PGP SIGNATURE-----\r\n"},"funding":{"url":"https://opencollective.com/unified","type":"opencollective"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"repository":{"url":"https://github.com/rehypejs/rehype-minify/tree/master/packages/hast-util-from-string","type":"git"},"_npmVersion":"6.14.3","description":"hast utility to set the plain-text value of a node","directories":{},"_nodeVersion":"13.10.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hast-util-from-string_1.0.3_1584815240381_0.9920510740874897","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"hast-util-from-string","version":"1.0.4","keywords":["unist","hast","hast-util","util","utility","html","string","text","content"],"author":{"url":"https://wooorm.com","name":"Titus Wormer","email":"tituswormer@gmail.com"},"license":"MIT","_id":"hast-util-from-string@1.0.4","maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"bugs":{"url":"https://github.com/rehypejs/rehype-minify/issues"},"xo":false,"dist":{"shasum":"5f7f94c1522455e881405b37f953ebd68ab0aa05","tarball":"https://registry.npmjs.org/hast-util-from-string/-/hast-util-from-string-1.0.4.tgz","fileCount":3,"integrity":"sha512-SFLN+9wPgdXVTV300VUyFNJCIltRO6P9zSgmw3O+B0NMV32MoyBJ9Ca+cjzUu7qWjVHN8+tcLaoHHL9+y8jcMQ==","signatures":[{"sig":"MEUCIQDrOtifFYGLOef6dXo8x7B3ZvhJg4yMP+ppuPmXqEB16wIgbN6FukhgfH/QvTh7eGzoh/rPOpKDE6KAZiz44mb0+pY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5027,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/cD1CRA9TVsSAnZWagAAqEkQAJgw5UX01qDuk3ZJMvDj\nVfLckzRGsK/EwGqEhf77yWBVokDUs2jWn9+qEuK1p1EqcyGRIllber+OOIKr\nYYOZn00gLoVfsrIM1/6y0znGMCDJScKglb6rdmo7SStjm3SU7DmO+Vu7IjtZ\nIZPgf31unmdEk7xBIW9TaWuXZ5aAumYNrjMjMZGx91bGU7eNYyMcWHUGfbBz\nk3MztdyBk6eExzMxQpjhGjVPWQOI6zTEi0//rxRpipi67lemMOalHg1dZxM5\nCFT6tb0rPRDRdKB+zmHysaSor641yrs5NMhsVkfeg5xi3v0n4r4oDNqnAoIv\nyypQGGd6cHiJZmOgy7vfv+sV+GS1EFsRuXWc9RvquI41KriekL3tPLde7QJP\nZJllgTF6u/l/9371VPsptobGM+QfdpRjzt4mlUZKT+vdMYFtUYfaXhf2QMT7\n4YM378Yw8T2CI1zG3GBlZIcIxqafQYcX3FOuokM0/VdXN5yrmaEOhaj0dl3r\nUxOmiw78ktGFqGBbJgwi95tMPXnVLkMVYneUxjso7UU0N5zLj200U4fA8eG5\nUm3NJI68fOTvhXkHpvBrvXDi17sH0WI6/x/QPdk6RRIz4b1/rFpZCen8Vfbl\noUgCxAl0x+RW/zVKr7s7Dt2eocUTvveiTKz8ClTcqEf6ye50y6NGgB40q5j1\nTrwv\r\n=obVI\r\n-----END PGP SIGNATURE-----\r\n"},"funding":{"url":"https://opencollective.com/unified","type":"opencollective"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"repository":{"url":"https://github.com/rehypejs/rehype-minify/tree/main/packages/hast-util-from-string","type":"git"},"_npmVersion":"6.14.5","description":"hast utility to set the plain-text value of a node","directories":{},"_nodeVersion":"14.0.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hast-util-from-string_1.0.4_1593688309208_0.9894165003332622","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"hast-util-from-string","version":"2.0.0","keywords":["unist","hast","hast-util","util","utility","html","string","text","content"],"author":{"url":"https://wooorm.com","name":"Titus Wormer","email":"tituswormer@gmail.com"},"license":"MIT","_id":"hast-util-from-string@2.0.0","maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"kmck","email":"keith@mcknig.ht"}],"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"homepage":"https://github.com/rehypejs/rehype-minify/tree/main#readme","bugs":{"url":"https://github.com/rehypejs/rehype-minify/issues"},"xo":false,"dist":{"shasum":"a04c2805d4511d47c0fdea7545985f272ee0f5c6","tarball":"https://registry.npmjs.org/hast-util-from-string/-/hast-util-from-string-2.0.0.tgz","fileCount":4,"integrity":"sha512-9JlBGWh+RXbT8PDrdwYZloN6poib8xg7Vq+LgN5TTqnaMDO0YqfX4EyZd3Myel6yIXlDsgysiRB1CTjH2K+1Dg==","signatures":[{"sig":"MEQCIBcwbgXhQQa1ctlyHtmghp88cC0Nw5RLEz84CfByIKomAiAjzEAHo8oLIy2OKC1JtieIwRQJzyejFc/WpAg5aGYeQw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBvBvCRA9TVsSAnZWagAAUkMP/3JIAF/DDODrBy84naWT\nVErzZgFd90Rn/zXd09Kyyx19AmlXQsrYCYBiI1R7WaXrCZ0xozYaS1rVnooX\nQNyxAnbK4DX1s/mdtJTd+hzKsrQXcTtDdiVE2cUMpqs0LBlHtqf7KfwHlKHS\nE/lxbnq/2TjCBRLXPE51d5tEW8U63iVfqoBJFNY/ruVV1OYVM7r1UrsmDnv+\ntFXd0HuV0j1VLKOf0QyXs7o3S4vKFejePDVx0v94oQACBqHoEGXziYA2sA1v\ndiDAL1M/WfpPzdyBvh7SsJcl6WciQ/6AS1SCKPYmWTMhUi2Rksvt5Gc2SCgf\nwzhnBjEGFjNxKeljLzrWFKLF3w/CeG8MTBIdAQz5j2NkkDlauzhH39USdIpk\nivszczjMtgGgIqLCEB8uTDUFOF93YQ4AEwvl0DnwViYLLcr/yAsk+obPnk+p\nB+Q1X4B1QO1BgdtD8DDv257GbXfkv4BhlMRFpK1RBMUaqsG5FNBHxy3g+cd5\n2GZhfF4ModCOIsKE2RJgu8jeqWB4CT7G+WIOvt5VXAvIWXIlz01iysbX6wPg\nX2tKYRO8Y1RZVpjis6fgp4Zyiwst1u9fhs3cz7vsOy4LnokLvLi7R2FABePZ\nT4m0RbSO3Ej8mQwmqER2NNcqGMJ9KOgQF+/LuAUS7+enO9WtZERYWZ+M6948\nC9RH\r\n=yIlG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","type":"module","types":"index.d.ts","funding":{"url":"https://opencollective.com/unified","type":"opencollective"},"scripts":{"test":"node --conditions development test.js","build":"rimraf \"*.d.ts\" && tsc && type-coverage"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"repository":{"url":"git+https://github.com/rehypejs/rehype-minify.git#main","type":"git"},"_npmVersion":"7.18.1","description":"hast utility to set the plain-text value of a node","directories":{},"sideEffects":false,"_nodeVersion":"16.2.0","dependencies":{"@types/hast":"^2.0.0"},"typeCoverage":{"detail":true,"strict":true,"atLeast":100,"ignoreCatch":true},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hast-util-from-string_2.0.0_1627844719564_0.3764704568304744","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"hast-util-from-string","version":"3.0.0","keywords":["content","hast","hast-util","html","string","text","unist","util","utility"],"author":{"url":"https://wooorm.com","name":"Titus Wormer","email":"tituswormer@gmail.com"},"license":"MIT","_id":"hast-util-from-string@3.0.0","maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"kmck","email":"keith@mcknig.ht"}],"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"homepage":"https://github.com/rehypejs/rehype-minify/tree/main#readme","bugs":{"url":"https://github.com/rehypejs/rehype-minify/issues"},"xo":false,"dist":{"shasum":"03d7fa95e3c868e7365b0f3be45e852adfbd80c6","tarball":"https://registry.npmjs.org/hast-util-from-string/-/hast-util-from-string-3.0.0.tgz","fileCount":6,"integrity":"sha512-wHZ8oXSUZGq9noJocMeBOBFVd0YWmSbkVQDcwPHuMqrWxwN8iv20UnYKrWbPZfeHIYkvW34hIik6lQofJzjjaw==","signatures":[{"sig":"MEUCIQD9Y5evB9kOed7UsY6fYbB4dAGt9P7pVS72RLvEDDWiewIgRfo/CbUc2+c8cpScCVJSL5tlTTJnQ4VnbiZY/f680AY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9486},"type":"module","types":"./index.d.ts","exports":"./index.js","funding":{"url":"https://opencollective.com/unified","type":"opencollective"},"gitHead":"142a16cf75ea59ab9a32b1a38e02cc42cdca3f6d","scripts":{},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"repository":{"url":"git+https://github.com/rehypejs/rehype-minify.git#main","type":"git"},"_npmVersion":"9.8.0","description":"hast utility to set the plain-text value of a node","directories":{},"sideEffects":false,"_nodeVersion":"20.5.1","dependencies":{"@types/hast":"^3.0.0"},"typeCoverage":{"detail":true,"strict":true,"atLeast":100,"ignoreCatch":true},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hast-util-from-string_3.0.0_1693408753394_0.42059628251837866","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"hast-util-from-string","version":"3.0.1","description":"hast utility to set the plain-text value of a node","license":"MIT","keywords":["content","hast","hast-util","html","string","text","unist","util","utility"],"repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype-minify.git#main"},"bugs":{"url":"https://github.com/rehypejs/rehype-minify/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"sideEffects":false,"type":"module","exports":"./index.js","dependencies":{"@types/hast":"^3.0.0"},"scripts":{},"typeCoverage":{"atLeast":100,"detail":true,"ignoreCatch":true,"strict":true},"xo":{"prettier":true,"rules":{"capitalized-comments":"off"}},"_id":"hast-util-from-string@3.0.1","gitHead":"79383ba769010ff52c547c57850d2dd3ecb815a9","types":"./index.d.ts","homepage":"https://github.com/rehypejs/rehype-minify/tree/main#readme","_nodeVersion":"22.7.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-EpOi8Ux+QiJEUhv69d0xtGlA/7o6V1Yr4jqy6hq0s71mgl9sJsdruRrCo9UMVLMg+VwBVB4dnut/qsOsem5WWA==","shasum":"18bbfbd22468eb804c60c78d2c5bf1da67458240","tarball":"https://registry.npmjs.org/hast-util-from-string/-/hast-util-from-string-3.0.1.tgz","fileCount":9,"unpackedSize":10963,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXV2lIX4RRScL4FNflOkqoOTvIHrWT3xHTaP2h7mJHvQIgO66Hi6fsSJE+DoIJRGWmQixsgbGun4m6RwkECfrViHw="}]},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"remcohaszing","email":"remcohaszing@gmail.com"},{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"kmck","email":"keith@mcknig.ht"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hast-util-from-string_3.0.1_1727437719372_0.15948470624292233"},"_hasShrinkwrap":false}},"time":{"created":"2016-09-08T13:12:56.128Z","modified":"2024-09-27T11:48:39.826Z","1.0.0":"2016-09-08T13:12:56.128Z","1.0.1":"2017-07-24T20:48:51.659Z","1.0.2":"2019-06-01T13:39:05.071Z","1.0.3":"2020-03-21T18:27:20.497Z","1.0.4":"2020-07-02T11:11:49.325Z","2.0.0":"2021-08-01T19:05:19.718Z","3.0.0":"2023-08-30T15:19:13.604Z","3.0.1":"2024-09-27T11:48:39.571Z"},"bugs":{"url":"https://github.com/rehypejs/rehype-minify/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"license":"MIT","homepage":"https://github.com/rehypejs/rehype-minify/tree/main#readme","keywords":["content","hast","hast-util","html","string","text","unist","util","utility"],"repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype-minify.git#main"},"description":"hast utility to set the plain-text value of a node","contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"maintainers":[{"name":"remcohaszing","email":"remcohaszing@gmail.com"},{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"kmck","email":"keith@mcknig.ht"}],"readme":"<!--This file is generated-->\n\n# hast-util-from-string\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n[![Sponsors][funding-sponsors-badge]][funding]\n[![Backers][funding-backers-badge]][funding]\n[![Chat][chat-badge]][chat]\n\n[`hast`][hast] utility to set the plain-text value of a node.\n\n## Contents\n\n* [What is this?](#what-is-this)\n* [When should I use this?](#when-should-i-use-this)\n* [Install](#install)\n* [Use](#use)\n* [API](#api)\n  * [`fromString(node[, value])`](#fromstringnode-value)\n* [Syntax](#syntax)\n* [Syntax tree](#syntax-tree)\n* [Types](#types)\n* [Compatibility](#compatibility)\n* [Security](#security)\n* [Contribute](#contribute)\n* [License](#license)\n\n## What is this?\n\nThis package is a utility to set the plain-text value of a node.\n\n## When should I use this?\n\nYou can use this package when you want to set the plain text value of a node.\nThe algorithm used by this package is like the DOMs `Node#textContent`\nsetter.\n\nTo use the DOMs `Node#innerText` algorithm instead, use\n[`hast-util-from-text`](https://github.com/syntax-tree/hast-util-from-text).\n`innerText` is aware of how things are displayed, for example turning line\nendings into `<br>` elements and joining table cells with tab (`\\t`)\ncharacters.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install hast-util-from-string\n```\n\nIn Deno with [`esm.sh`][esm-sh]:\n\n```js\nimport {fromString} from 'https://esm.sh/hast-util-from-string@3'\n```\n\nIn browsers with [`esm.sh`][esm-sh]:\n\n```html\n<script type=\"module\">\n  import {fromString} from 'https://esm.sh/hast-util-from-string@3?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {h} from 'hastscript'\nimport {fromString} from 'hast-util-from-string'\n\nconst p = h('p')\nfromString(p, 'Alpha')\nconsole.log(p)\n// { type: 'element',\n//   tagName: 'p',\n//   properties: {},\n//   children: [ { type: 'text', value: 'Alpha' } ] }\n\nconst div = h('div', [h('b', 'Bold'), ' and ', h('i', 'italic'), '.'])\nfromString(div, 'Charlie')\nconsole.log(div)\n// { type: 'element',\n//   tagName: 'div',\n//   properties: {},\n//   children: [ { type: 'text', value: 'Charlie' } ] }\n```\n\n## API\n\nThis package exports the identifier\n`fromString`.\nThere is no default export.\n\n### `fromString(node[, value])`\n\nSet the plain-text value of a node.\n\n###### Parameters\n\n* `node` (`Node`) — node to change\n* `value` (`string`, default: `''`) — value to use\n\n###### Returns\n\nNothing (`undefined`).\n\n###### Algorithm\n\n* if `node` is a `comment` or `text` node, sets its `value`\n* if `node` is an `element` or `root`, replaces its children with a text\n  node for `value`\n\n## Syntax\n\nHTML is parsed according to WHATWG HTML (the living standard), which is also\nfollowed by all browsers.\n\n## Syntax tree\n\nThe syntax tree used is [hast][].\n\n## Types\n\nThis package is fully typed with [TypeScript][].\n\n## Compatibility\n\nProjects maintained by the unified collective are compatible with maintained\nversions of Node.js.\n\nWhen we cut a new major release, we drop support for unmaintained versions of\nNode.\nThis means we try to keep the current release line,\n`hast-util-from-string@^3`,\ncompatible with Node.js 16.\n\n## Security\n\nAs **rehype** works on HTML and improper use of HTML can open you up to a\n[cross-site scripting (XSS)][xss] attack, use of rehype can also be unsafe.\nUse [`rehype-sanitize`][rehype-sanitize] to make the tree safe.\n\n## Contribute\n\nSee [`contributing.md`][contributing] in [`rehypejs/.github`][health] for ways\nto get started.\nSee [`support.md`][support] for ways to get help.\n\nThis project has a [code of conduct][coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n[author]: https://wooorm.com\n\n[build]: https://github.com/rehypejs/rehype-minify/actions\n\n[build-badge]: https://github.com/rehypejs/rehype-minify/workflows/main/badge.svg\n\n[chat]: https://github.com/rehypejs/rehype/discussions\n\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[coc]: https://github.com/rehypejs/.github/blob/main/code-of-conduct.md\n\n[contributing]: https://github.com/rehypejs/.github/blob/main/contributing.md\n\n[coverage]: https://codecov.io/github/rehypejs/rehype-minify\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/rehypejs/rehype-minify.svg\n\n[downloads]: https://www.npmjs.com/package/hast-util-from-string\n\n[downloads-badge]: https://img.shields.io/npm/dm/hast-util-from-string.svg\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esm-sh]: https://esm.sh\n\n[funding]: https://opencollective.com/unified\n\n[funding-backers-badge]: https://opencollective.com/unified/backers/badge.svg\n\n[funding-sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n\n[hast]: https://github.com/syntax-tree/hast\n\n[health]: https://github.com/rehypejs/.github\n\n[license]: https://github.com/rehypejs/rehype-minify/blob/main/license\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[rehype-sanitize]: https://github.com/rehypejs/rehype-sanitize\n\n[size]: https://bundlejs.com/?q=hast-util-from-string\n\n[size-badge]: https://img.shields.io/bundlejs/size/hast-util-from-string\n\n[support]: https://github.com/rehypejs/.github/blob/main/support.md\n\n[typescript]: https://www.typescriptlang.org\n\n[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting\n","readmeFilename":"readme.md","users":{"flumpus-dev":true}}