{"_id":"parse5-sax-parser@8.0.1","bugs":{"url":"https://github.com/inikulin/parse5/issues"},"dist":{"shasum":"9072f7809e2bcae6e21c45986bcf03ccb0da77e5","tarball":"http://registry-npm.ywwl.com/parse5-sax-parser/download/parse5-sax-parser-8.0.1.tgz","fileCount":9,"integrity":"sha512-6eHc4FeWwv8uBX1yMZ8Vl5zcT61k8EpK/rgRwNl/BLY4pOkUqXI1RIwGSIvxyBXzl5TGj4TvIQBJGwTU4P+ddg==","signatures":[{"sig":"MEUCIFG7gIdoLd7doBTlPhseJFp65N8QrAK/9iyknTQ8cC4uAiEAoBINtkWE20ngvu9xt0EIHWn7AxMBD5iGDQvlq9274Uk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIComoBWWtkl5Xsl8kV4Y5iGUU8SKQaRbwKL5xvR1s+z5AiEA4dOwbI+1wpE5hCPMDvCKwJH0PsOdjNyNNoDQjVcWhJw="}],"unpackedSize":27348,"size":6885,"noattachment":false,"key":"/parse5-sax-parser/-/parse5-sax-parser-8.0.1.tgz"},"main":"dist/index.js","name":"parse5-sax-parser","type":"module","types":"dist/index.d.ts","author":{"url":"https://github.com/inikulin","name":"Ivan Nikulin","email":"ifaaan@gmail.com"},"module":"dist/index.js","exports":{".":{"default":"./dist/index.js"}},"funding":"https://github.com/inikulin/parse5?sponsor=1","license":"MIT","version":"8.0.1","_npmUser":{"name":"fb55","email":"me@feedic.com"},"homepage":"https://parse5.js.org","keywords":["parse5","parser","stream","streaming","SAX"],"repository":{"url":"git://github.com/inikulin/parse5.git","type":"git"},"_npmVersion":"11.19.1","description":"Streaming SAX-style HTML parser.","directories":{},"maintainers":[{"name":"fb55","email":"me@feedic.com"},{"name":"43081j","email":"43081james@gmail.com"},{"name":"rreverser","email":"me@rreverser.com"},{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"inikulin","email":"ifaaan@gmail.com"}],"_nodeVersion":"26.9.0","contributors":[{"url":"https://github.com/43081j","name":"James Garbutt"},{"url":"https://github.com/fb55","name":"Felix Boehm"},{"url":"https://github.com/inikulin","name":"Ivan Nikulin"},{"url":"https://github.com/wooorm","name":"Titus"}],"dependencies":{"parse5":"^8.1.1"},"_hasShrinkwrap":false,"devDependencies":{"parse5-test-utils":"1.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/parse5-sax-parser_8.0.1_1794087722519_0.9836367474866906"},"readme":"<p align=\"center\">\n    <a href=\"https://github.com/inikulin/parse5\">\n        <img src=\"https://raw.github.com/inikulin/parse5/master/media/logo.png\" alt=\"parse5\" />\n    </a>\n</p>\n\n<div align=\"center\">\n<h1>parse5-sax-parser</h1>\n<i><b>Streaming <a href=\"https://en.wikipedia.org/wiki/Simple_API_for_XML\">SAX</a>-style HTML parser.</b></i>\n</div>\n<br>\n\n<div align=\"center\">\n<code>npm install --save parse5-sax-parser</code>\n</div>\n<br>\n\n<p align=\"center\">\n  📖 <a href=\"https://parse5.js.org/modules/parse5-sax-parser.html\"><b>Documentation</b></a> 📖\n</p>\n\n## Usage\n\nHandle HTML tokens as they arrive, without building a document tree.\n\n```js\nimport { Readable } from 'node:stream';\nimport { pipeline } from 'node:stream/promises';\nimport { SAXParser } from 'parse5-sax-parser';\n\nconst parser = new SAXParser();\nconst text = [];\nparser.on('text', (token) => text.push(token.text));\nawait pipeline(Readable.from(['<p>Hello, <b>world!</b></p>']), parser);\nconsole.log(text.join('')); // Hello, world!\n```\n\n---\n\n<p align=\"center\">\n  <a href=\"https://github.com/inikulin/parse5/tree/master/docs/list-of-packages.md\">List of parse5 toolset packages</a>\n</p>\n\n<p align=\"center\">\n    <a href=\"https://github.com/inikulin/parse5\">GitHub</a>\n</p>\n\n<p align=\"center\">\n    <a href=\"https://github.com/inikulin/parse5/releases\">Changelog</a>\n</p>\n","publish_time":1794087722621,"_cnpm_publish_time":1794087722621,"dist-tags":{"latest":"8.0.1"}}