{"_id":"stream-markdown","_rev":"16-a3cb0d72f382a81539a818f5b70acb69","name":"stream-markdown","dist-tags":{"latest":"0.0.16"},"versions":{"0.0.1":{"name":"stream-markdown","version":"0.0.1","license":"MIT","_id":"stream-markdown@0.0.1","maintainers":[{"name":"simon_he","email":"13917107469@163.com"}],"dist":{"shasum":"b2e620f789d65ed9a634a3597c4cb10ebbdd1de6","tarball":"https://registry.npmjs.org/stream-markdown/-/stream-markdown-0.0.1.tgz","fileCount":7,"integrity":"sha512-85L2pg+Ik0AKjYTAbFhAp7IebYMsJrwPZnE1KlmSyfgcgmnVXLcpaH2R4XurKifJFUx9wYZP6SXBRIoc3cZ6XA==","signatures":[{"sig":"MEUCIQDwm/c5NSVZZmCnc5H1npqvJJl0v7iUOppkEHPO1+314AIgbIYfAk5Gxl7t9QxM2+r2gm4H7bccjQ0TB/ahFw1sa+0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38597},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"d70bfc557ddf418e2ec81571cedfd6bd6cbf3ca2","scripts":{"build":"tsdown","clean":"rimraf dist"},"_npmUser":{"name":"simon_he","email":"13917107469@163.com"},"_npmVersion":"10.9.2","description":"Streaming code/markdown highlighter utilities (Shiki-based)","directories":{},"sideEffects":false,"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.15.9","typescript":"^5.9.3"},"peerDependencies":{"shiki":">=3.13.0"},"_npmOperationalInternal":{"tmp":"tmp/stream-markdown_0.0.1_1761124452456_0.16221438771354868","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"stream-markdown","version":"0.0.2","license":"MIT","_id":"stream-markdown@0.0.2","maintainers":[{"name":"simon_he","email":"13917107469@163.com"}],"dist":{"shasum":"0f83fe4792f23b9717453508bc4023bc451df9a0","tarball":"https://registry.npmjs.org/stream-markdown/-/stream-markdown-0.0.2.tgz","fileCount":7,"integrity":"sha512-8KlnIC9Ybnw0h91wNYs67W26RNMTwosibGmal4ETxM8jCN7vd6nXBNcED5RneVC8N/ji7qejuquHj55YpQZ3Pg==","signatures":[{"sig":"MEUCIQCWxpJHdx3vUVxO0Vla5QPDUw3H0I6AojOaX7I5LL30ogIgXyAJPwfaHfv9gpjLAwvv18879MzwDYoR5t94RzK7kys=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37789},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"1351e726860d14120e2af2efa9af5f575f6bc99b","scripts":{"build":"tsdown","release":"bumpp --commit --push --tag && npm publish","prepublishOnly":"pnpm run build"},"_npmUser":{"name":"simon_he","email":"13917107469@163.com"},"_npmVersion":"10.9.2","description":"Streaming code/markdown highlighter utilities (Shiki-based)","directories":{},"sideEffects":false,"_nodeVersion":"23.7.0","dependencies":{"bumpp":"^9.11.1"},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.15.9","typescript":"^5.9.3"},"peerDependencies":{"shiki":">=3.13.0"},"_npmOperationalInternal":{"tmp":"tmp/stream-markdown_0.0.2_1761126539673_0.21783469986847437","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"stream-markdown","version":"0.0.3","license":"MIT","_id":"stream-markdown@0.0.3","maintainers":[{"name":"simon_he","email":"13917107469@163.com"}],"dist":{"shasum":"a478305dd975ed211744502d14715e9ec4aae135","tarball":"https://registry.npmjs.org/stream-markdown/-/stream-markdown-0.0.3.tgz","fileCount":7,"integrity":"sha512-/nwG72+ZyQZuZ/+yKivgyHbtMffaiczV/7aG2CUJxSShGVFfj4EgPUPUDYUGVu+YdZBzPgCwEsBFII7ss8E0Gg==","signatures":[{"sig":"MEYCIQDthKOdWD46gJOImLfm5fJlePGYAzzP67fwulC8LibTnwIhAN2Imk++TsL0AeRUFKLg6zBiHGM45HUYwf8PDCz+Mcdy","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37839},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"5bebbb686c4e55a25ffa2ba2f1b7952b6121ac17","scripts":{"build":"tsdown","release":"bumpp --commit --push --tag && npm publish","prepublishOnly":"pnpm run build"},"_npmUser":{"name":"simon_he","email":"13917107469@163.com"},"_npmVersion":"10.9.2","description":"Streaming code/markdown highlighter utilities (Shiki-based)","directories":{},"sideEffects":false,"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"bumpp":"^9.11.1","tsdown":"^0.15.9","typescript":"^5.9.3"},"peerDependencies":{"shiki":">=3.13.0"},"_npmOperationalInternal":{"tmp":"tmp/stream-markdown_0.0.3_1761274414029_0.8702036811159308","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"stream-markdown","version":"0.0.4","license":"MIT","_id":"stream-markdown@0.0.4","maintainers":[{"name":"simon_he","email":"13917107469@163.com"}],"dist":{"shasum":"ae66a90dd06be826a84863e1f15f94ce4a614e60","tarball":"https://registry.npmjs.org/stream-markdown/-/stream-markdown-0.0.4.tgz","fileCount":7,"integrity":"sha512-sjct4fY01KTftTRd8JmY9ttt4SB2EdCDYcd66RnbGJ26e0jRTbk8CCTpkCy9PsNjHfIWVUP+f2QqQfhIgonMSw==","signatures":[{"sig":"MEQCIAN3dXoYRfMDd+ba6HGo0YfHNyF3fC+HKQm2zdCNtC6yAiBleVJFuHZ5hrpZSlKnAGoLRbI3kiAxQvDfoREZ/upOGw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37855},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"9ad509ec8f378ebbf5f2e2db284a9ae2d4ab5aba","scripts":{"build":"tsdown","release":"bumpp --commit --push --tag && npm publish","prepublishOnly":"pnpm run build"},"_npmUser":{"name":"simon_he","email":"13917107469@163.com"},"_npmVersion":"10.9.2","description":"Streaming code/markdown highlighter utilities (Shiki-based)","directories":{},"sideEffects":false,"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"bumpp":"^9.11.1","tsdown":"^0.15.9","typescript":"^5.9.3"},"peerDependencies":{"shiki":">=3.13.0"},"_npmOperationalInternal":{"tmp":"tmp/stream-markdown_0.0.4_1761274651190_0.64154620216834","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"stream-markdown","version":"0.0.5","license":"MIT","_id":"stream-markdown@0.0.5","maintainers":[{"name":"simon_he","email":"13917107469@163.com"}],"dist":{"shasum":"7c431dc58a17af8f5d887102b71838e0a9aed5f7","tarball":"https://registry.npmjs.org/stream-markdown/-/stream-markdown-0.0.5.tgz","fileCount":7,"integrity":"sha512-+MMqckBs6BlmJrCi47bseuuIEZOuHfeeQf12bkySlf2POz8KJk73pbqUfdmgJL4+sfZITG9WAoApiNiIsNrhRw==","signatures":[{"sig":"MEUCIDPj6ACiJBmiphnK3q2HEiix4G+By/XcRycUu+3/0SZsAiEAtQw8fFe7QfVSbctOA9gF/tDXkdTHbdWD+gsysTVbXiQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40158},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"d821a8e1afd15a073558c9b841f72cb1f17f32ab","scripts":{"build":"tsdown","release":"bumpp --commit --push --tag && npm publish","prepublishOnly":"pnpm run build"},"_npmUser":{"name":"simon_he","email":"13917107469@163.com"},"_npmVersion":"10.9.2","description":"Streaming code/markdown highlighter utilities (Shiki-based)","directories":{},"sideEffects":false,"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"bumpp":"^9.11.1","tsdown":"^0.15.9","typescript":"^5.9.3"},"peerDependencies":{"shiki":">=3.13.0"},"_npmOperationalInternal":{"tmp":"tmp/stream-markdown_0.0.5_1761275917634_0.47130048570490546","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"stream-markdown","version":"0.0.6","license":"MIT","_id":"stream-markdown@0.0.6","maintainers":[{"name":"simon_he","email":"13917107469@163.com"}],"dist":{"shasum":"2d7a16ce036cf3c3097591ef7426007ecda4b138","tarball":"https://registry.npmjs.org/stream-markdown/-/stream-markdown-0.0.6.tgz","fileCount":7,"integrity":"sha512-yZgzX/1uNEDCcD7IO+Jl31UZpz8h928ymLvSOx0XJm+zRiVVES9ti6iW2nXc4Wr+umjwyy2BPMC9OeSKyfSUgA==","signatures":[{"sig":"MEUCIG9KTj4FfeBGS2+SWpkwZ+AIUcauS3UfbtLCJzF9BR5VAiEA3GNv4i0bfXlBoIsB74kZvf5TXAKbqSThFDWEPkZoIQY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61565},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"dc66d5a3366d560a7592445e6f8f58a203e3e139","scripts":{"build":"tsdown","release":"bumpp --commit --push --tag && npm publish","prepublishOnly":"pnpm run build"},"_npmUser":{"name":"simon_he","email":"13917107469@163.com"},"_npmVersion":"10.9.2","description":"Streaming code/markdown highlighter utilities (Shiki-based)","directories":{},"sideEffects":false,"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"bumpp":"^9.11.1","tsdown":"^0.15.9","typescript":"^5.9.3"},"peerDependencies":{"shiki":">=3.13.0"},"_npmOperationalInternal":{"tmp":"tmp/stream-markdown_0.0.6_1761735468383_0.07613785326558498","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"stream-markdown","version":"0.0.7","license":"MIT","_id":"stream-markdown@0.0.7","maintainers":[{"name":"simon_he","email":"13917107469@163.com"}],"dist":{"shasum":"2f0f94193a9cf12f37a7e4f4c77b181d833bce67","tarball":"https://registry.npmjs.org/stream-markdown/-/stream-markdown-0.0.7.tgz","fileCount":7,"integrity":"sha512-jrtz8SkCpOR3d3rjbNdw0Z3tG5HIAQvU9sE9mx5xywG6JHdZjp22qsAQO3B/WmUizDFVixMAc6kv1KjUdGvMTg==","signatures":[{"sig":"MEUCIQDJPeOCkfotUYNVghBM4UoR+mMpZS4BiNoWvEz1yvUiwgIgM6YA9/LSv9s+hujDCU/wEOLYSGAxe04riJ9Ylnu3Pag=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":75269},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"62d540f402917f361d07c1aa28342ffb8a342aeb","scripts":{"build":"tsdown","release":"bumpp --commit --push --tag && npm publish","prepublishOnly":"pnpm run build"},"_npmUser":{"name":"simon_he","email":"13917107469@163.com"},"_npmVersion":"10.9.2","description":"Streaming code/markdown highlighter utilities (Shiki-based)","directories":{},"sideEffects":false,"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"bumpp":"^9.11.1","tsdown":"^0.15.9","typescript":"^5.9.3"},"peerDependencies":{"shiki":">=3.13.0"},"_npmOperationalInternal":{"tmp":"tmp/stream-markdown_0.0.7_1761789496850_0.28555076157183357","host":"s3://npm-registry-packages-npm-production"}},"0.0.8":{"name":"stream-markdown","version":"0.0.8","license":"MIT","_id":"stream-markdown@0.0.8","maintainers":[{"name":"simon_he","email":"13917107469@163.com"}],"dist":{"shasum":"c55f777f14f9762d38bc9a37678b1c5e637a94bc","tarball":"https://registry.npmjs.org/stream-markdown/-/stream-markdown-0.0.8.tgz","fileCount":7,"integrity":"sha512-NgS18JT6afeo0dhNUD+PkeUAifBDwQRsXvmVMHS7XIuVu0kgmGRo2UkZkPScEKNHjupPjiRX6QqvMBIPXq+ovA==","signatures":[{"sig":"MEUCIB5OnqTB4b51T/7SPKLZVn1F/d/yvIMJgOPpSm5jSe70AiEAiz+Vet2CQEq6tiGty3TuKBkRKvO7cL9m6qAfbqeIueA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":81869},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"2d4d827292095bd387b5c023c153bac98fd583f1","scripts":{"build":"tsdown","release":"bumpp --commit --push --tag && npm publish","prepublishOnly":"pnpm run build"},"_npmUser":{"name":"simon_he","email":"13917107469@163.com"},"_npmVersion":"10.9.2","description":"Streaming code/markdown highlighter utilities (Shiki-based)","directories":{},"sideEffects":false,"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"bumpp":"^9.11.1","tsdown":"^0.15.9","typescript":"^5.9.3"},"peerDependencies":{"shiki":">=3.13.0"},"_npmOperationalInternal":{"tmp":"tmp/stream-markdown_0.0.8_1761795478668_0.2913296282792037","host":"s3://npm-registry-packages-npm-production"}},"0.0.9":{"name":"stream-markdown","version":"0.0.9","license":"MIT","_id":"stream-markdown@0.0.9","maintainers":[{"name":"simon_he","email":"13917107469@163.com"}],"dist":{"shasum":"ee20a9bd065ba9026af07e90e7f7902beb553555","tarball":"https://registry.npmjs.org/stream-markdown/-/stream-markdown-0.0.9.tgz","fileCount":7,"integrity":"sha512-oodVRz9a4AF03eIkOZkP4LIAw0UusWU2KJwQLDI4Yu463KEYVCdsHpdg0OjLdRgh55aT97N5E6y77CJfauWgoA==","signatures":[{"sig":"MEYCIQDYbLhZrThI5W4fO53GUSKi80vE+0iqEKkS4a3Mg3sr5gIhAPS/kjYnRBqoo9e4c5S5uEOeDXqXat4yIuupfA6nUsYX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":82348},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"a785320fda5cab8b86db375e89cb40c3e361f486","scripts":{"build":"tsdown","release":"bumpp --commit --push --tag && npm publish","prepublishOnly":"pnpm run build"},"_npmUser":{"name":"simon_he","email":"13917107469@163.com"},"_npmVersion":"10.9.2","description":"Streaming code/markdown highlighter utilities (Shiki-based)","directories":{},"sideEffects":false,"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"bumpp":"^9.11.1","tsdown":"^0.15.12","typescript":"^5.9.3"},"peerDependencies":{"shiki":">=3.13.0"},"_npmOperationalInternal":{"tmp":"tmp/stream-markdown_0.0.9_1762424851204_0.2970973590594643","host":"s3://npm-registry-packages-npm-production"}},"0.0.10":{"name":"stream-markdown","version":"0.0.10","license":"MIT","_id":"stream-markdown@0.0.10","maintainers":[{"name":"simon_he","email":"13917107469@163.com"}],"dist":{"shasum":"0b4a0b7281b0b9cce44ffc30676f169ce695baad","tarball":"https://registry.npmjs.org/stream-markdown/-/stream-markdown-0.0.10.tgz","fileCount":8,"integrity":"sha512-k3B1h1gUga0nArchDSD6O8+rxXiL6WvuZ11hZgxpYy9Z1Pihjt8rYROoTdJeC2k2ymctLYTDIGRI6AASjipLeg==","signatures":[{"sig":"MEUCIQCV2DnVfYFuwdLjuuTefi4n2wRZSSm6ud8yaU6v00Rs/QIgA+avpti8t5QAyq7DF3D1yIp0h917N2BGseS+ymXQI64=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":84257},"main":"dist/index.js","type":"module","_from":"file:stream-markdown-0.0.10.tgz","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsdown","release":"bumpp --commit --push --tag && npm publish"},"_npmUser":{"name":"simon_he","email":"13917107469@163.com"},"_resolved":"/private/var/folders/z8/w1qvd0cd46z6k8_swl1n33d00000gn/T/af2e4b640084228adbe54ad818373717/stream-markdown-0.0.10.tgz","_integrity":"sha512-k3B1h1gUga0nArchDSD6O8+rxXiL6WvuZ11hZgxpYy9Z1Pihjt8rYROoTdJeC2k2ymctLYTDIGRI6AASjipLeg==","_npmVersion":"10.9.2","description":"Streaming code/markdown highlighter utilities (Shiki-based)","directories":{},"sideEffects":false,"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"bumpp":"^9.11.1","tsdown":"^0.15.12","typescript":"^5.9.3"},"peerDependencies":{"shiki":">=3.13.0"},"_npmOperationalInternal":{"tmp":"tmp/stream-markdown_0.0.10_1763695451132_0.595937603638165","host":"s3://npm-registry-packages-npm-production"}},"0.0.11":{"name":"stream-markdown","version":"0.0.11","license":"MIT","_id":"stream-markdown@0.0.11","maintainers":[{"name":"simon_he","email":"13917107469@163.com"}],"dist":{"shasum":"c68fc707210f25aef486ceeb3e3865761069aba7","tarball":"https://registry.npmjs.org/stream-markdown/-/stream-markdown-0.0.11.tgz","fileCount":7,"integrity":"sha512-7J6uc5pPJ+pdBNuJOio1Y5s3WBVPj6GFNC5mPE903yS109xk/BFtNW12xkO8Bn1X6fYlThc/6nk9WcPKbHmJvA==","signatures":[{"sig":"MEUCID/y0y1SYs/E4TvdxuWOiuqPLUQHCyR53Lw1fKwwoJV2AiEAkknRqsZ4dxU2JdecJbCZbxJ8o5vh1VtoVzCBnqCo1w8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":83233},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"a7e0bd7ddd621dc836d75423b86a0844b8e7137f","scripts":{"build":"tsdown","release":"bumpp --commit --push --tag && npm publish","prepublishOnly":"pnpm run build"},"_npmUser":{"name":"simon_he","email":"13917107469@163.com"},"_npmVersion":"10.9.2","description":"Streaming code/markdown highlighter utilities (Shiki-based)","directories":{},"sideEffects":false,"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"bumpp":"^9.11.1","tsdown":"^0.15.12","typescript":"^5.9.3"},"peerDependencies":{"shiki":">=3.13.0"},"_npmOperationalInternal":{"tmp":"tmp/stream-markdown_0.0.11_1765158755123_0.40102650997890943","host":"s3://npm-registry-packages-npm-production"}},"0.0.12":{"name":"stream-markdown","version":"0.0.12","license":"MIT","_id":"stream-markdown@0.0.12","maintainers":[{"name":"simon_he","email":"13917107469@163.com"}],"dist":{"shasum":"f6f3e3bbf494f4f9ebedf7786827479c75db7c39","tarball":"https://registry.npmjs.org/stream-markdown/-/stream-markdown-0.0.12.tgz","fileCount":7,"integrity":"sha512-GkyTu1JLR0SZ9uItx0AL7QkT13GU935pJ6Svmdc61gO/PFtcnOD3tw01xZd1ajZm+I4JIasWPtYNJN4sKLf5Iw==","signatures":[{"sig":"MEUCIQCj7IdeKurXvkkDEQINiprHjWt2tAxXe2PvHKBqIaMkcgIgRF1xrEF2lkffbLE9qeKofME+HrVpQf7TvbL2CzO4ZN4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":85305},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"30266db7c5cf68d8dc8ee6717b79b749bda9007d","scripts":{"build":"tsdown","release":"bumpp --commit --push --tag && npm publish","prepublishOnly":"pnpm run build"},"_npmUser":{"name":"simon_he","email":"13917107469@163.com"},"_npmVersion":"10.9.2","description":"Streaming code/markdown highlighter utilities (Shiki-based)","directories":{},"sideEffects":false,"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"bumpp":"^9.11.1","tsdown":"^0.15.12","typescript":"^5.9.3"},"peerDependencies":{"shiki":">=3.13.0"},"_npmOperationalInternal":{"tmp":"tmp/stream-markdown_0.0.12_1767697932996_0.9806459984731217","host":"s3://npm-registry-packages-npm-production"}},"0.0.13":{"name":"stream-markdown","version":"0.0.13","license":"MIT","_id":"stream-markdown@0.0.13","maintainers":[{"name":"simon_he","email":"13917107469@163.com"}],"dist":{"shasum":"bc0f46e30c9b2e1d344c9bc0fd4fa5d8f01b7799","tarball":"https://registry.npmjs.org/stream-markdown/-/stream-markdown-0.0.13.tgz","fileCount":7,"integrity":"sha512-XYhBEtKA76L6q3Uegvu8QOiUDAV4bfF1TcP3rot8eK0AR1+WGHBB6IfT9GJeLFJ7+qZgrH+WxQp/8lZ6CXjeeg==","signatures":[{"sig":"MEUCIEk/NXTF+gQhMZA/IFJR6uO4/P6SwFkx2k57i6RbZl+sAiEAmlvCdzh4IDR45POw/ogiD+yEzI/+mvhBgAJozpshJMs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":90401},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"f2af6a75deabdef3bfbba0ae7410c0af811eaa5a","scripts":{"build":"tsdown","release":"bumpp --commit --push --tag && npm publish","prepublishOnly":"pnpm run build"},"_npmUser":{"name":"simon_he","email":"13917107469@163.com"},"_npmVersion":"10.9.2","description":"Streaming code/markdown highlighter utilities (Shiki-based)","directories":{},"sideEffects":false,"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"bumpp":"^9.11.1","tsdown":"^0.15.12","typescript":"^5.9.3"},"peerDependencies":{"shiki":">=3.13.0"},"_npmOperationalInternal":{"tmp":"tmp/stream-markdown_0.0.13_1767699811950_0.1738302461351433","host":"s3://npm-registry-packages-npm-production"}},"0.0.14":{"name":"stream-markdown","version":"0.0.14","license":"MIT","_id":"stream-markdown@0.0.14","maintainers":[{"name":"simon_he","email":"13917107469@163.com"}],"dist":{"shasum":"e2b95baa84d715bccf931d75e90f6219c0ac5bdc","tarball":"https://registry.npmjs.org/stream-markdown/-/stream-markdown-0.0.14.tgz","fileCount":7,"integrity":"sha512-W9P+TU1/zvQFtogwVjI+hju5LwUdbMwjtKM/SxxRbUoMh7yHKO2JwCaZf9yslrP5IKKR1psxJW+N5O4XB3YOEw==","signatures":[{"sig":"MEYCIQCVO2hxbt/bREHMiCKoBaStCJOCUiUJrgIuCsxK3uopgAIhAJvGrsH/pyCfBD/cpCwi6KQIdNTeB4/n9NdaQRr9zpUz","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":115052},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"7157498b80df13a36f702a45c142a146b508ca50","scripts":{"build":"tsdown","release":"bumpp --commit --push --tag && npm publish","prepublishOnly":"pnpm run build"},"_npmUser":{"name":"simon_he","email":"13917107469@163.com"},"_npmVersion":"10.9.2","description":"Streaming code/markdown highlighter utilities (Shiki-based)","directories":{},"sideEffects":false,"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"bumpp":"^9.11.1","tsdown":"^0.15.12","typescript":"^5.9.3"},"peerDependencies":{"shiki":">=3.13.0"},"_npmOperationalInternal":{"tmp":"tmp/stream-markdown_0.0.14_1770024243452_0.22515486675028695","host":"s3://npm-registry-packages-npm-production"}},"0.0.15":{"name":"stream-markdown","version":"0.0.15","license":"MIT","_id":"stream-markdown@0.0.15","maintainers":[{"name":"simon_he","email":"13917107469@163.com"}],"dist":{"shasum":"3f0205bf042ff0794f82fd79e8cb57d7698a7e12","tarball":"https://registry.npmjs.org/stream-markdown/-/stream-markdown-0.0.15.tgz","fileCount":7,"integrity":"sha512-1WlzjZUb9W5BWZYMKCr2/exPVh5P7HIhHzkcYZczkXm0upiuN4zEddwjdckL+WSQWGGlv9bboXCqcTYCEgqexw==","signatures":[{"sig":"MEQCIBNOmqyL/JCaUcWoBStjTZ0RoNqggFli4+S8Kk/wzHLhAiBm0FFnMINPTi7lp8AdYR9EuPmCt3tOjVa7AnU4msqg2g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":135562},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"c247a5020c284731649b5f66788ce7bd881442de","scripts":{"build":"tsdown","release":"bumpp --commit --push --tag && npm publish","prepublishOnly":"pnpm run build"},"_npmUser":{"name":"simon_he","email":"13917107469@163.com"},"_npmVersion":"10.9.2","description":"Streaming code/markdown highlighter utilities (Shiki-based)","directories":{},"sideEffects":false,"_nodeVersion":"23.11.0","dependencies":{"shiki-stream":"^0.1.4"},"_hasShrinkwrap":false,"devDependencies":{"bumpp":"^9.11.1","tsdown":"^0.15.12","typescript":"^5.9.3"},"peerDependencies":{"shiki":">=3.13.0"},"_npmOperationalInternal":{"tmp":"tmp/stream-markdown_0.0.15_1775014572230_0.2779756901487027","host":"s3://npm-registry-packages-npm-production"}},"0.0.16":{"name":"stream-markdown","type":"module","version":"0.0.16","description":"Streaming code/markdown highlighter utilities (Shiki-based)","license":"MIT","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"main":"dist/index.js","module":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsdown","prepublishOnly":"pnpm run build","release":"bumpp --commit --push --tag && npm publish"},"peerDependencies":{"shiki":">=3.23.0"},"dependencies":{"shiki-stream":"0.1.4"},"devDependencies":{"bumpp":"^9.11.1","tsdown":"^0.15.12","typescript":"^5.9.3"},"_id":"stream-markdown@0.0.16","gitHead":"5563b78a4b1eb636e9bf71a193700b9fa0bb27cc","_nodeVersion":"23.11.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-2WoOxlpc3N5RLc3zGuW+g/w76z6ketWBY0N1YzDYbXds1qw7zrUBv5PTQ3DOtpqgCjLuF3P2iCfjJTEqWGv0NQ==","shasum":"f76c27cdf13d9c6aa7b8d7aeb2c65845ceb3cf86","tarball":"https://registry.npmjs.org/stream-markdown/-/stream-markdown-0.0.16.tgz","fileCount":7,"unpackedSize":276237,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGco8WgZyyp0czOB5GF7xw7KslToWKNvHWenFmAyQyUuAiANKxA2nLPQow5GTSqpi3jEr5k3fbA3tOVGSJ+LeyyotQ=="}]},"_npmUser":{"name":"simon_he","email":"13917107469@163.com"},"directories":{},"maintainers":[{"name":"simon_he","email":"13917107469@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/stream-markdown_0.0.16_1780974843107_0.7989279146810633"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-22T09:14:12.342Z","modified":"2026-06-09T03:14:03.348Z","0.0.1":"2025-10-22T09:14:12.641Z","0.0.2":"2025-10-22T09:48:59.863Z","0.0.3":"2025-10-24T02:53:34.217Z","0.0.4":"2025-10-24T02:57:31.385Z","0.0.5":"2025-10-24T03:18:37.818Z","0.0.6":"2025-10-29T10:57:48.596Z","0.0.7":"2025-10-30T01:58:17.042Z","0.0.8":"2025-10-30T03:37:58.856Z","0.0.9":"2025-11-06T10:27:31.395Z","0.0.10":"2025-11-21T03:24:11.363Z","0.0.11":"2025-12-08T01:52:35.280Z","0.0.12":"2026-01-06T11:12:13.168Z","0.0.13":"2026-01-06T11:43:32.103Z","0.0.14":"2026-02-02T09:24:03.582Z","0.0.15":"2026-04-01T03:36:12.414Z","0.0.16":"2026-06-09T03:14:03.253Z"},"license":"MIT","description":"Streaming code/markdown highlighter utilities (Shiki-based)","maintainers":[{"name":"simon_he","email":"13917107469@163.com"}],"readme":"# stream-markdown（中文）\n\n基于 Shiki 的流式语法高亮与 Markdown 渲染工具集，支持按 token 自绘与增量更新，适合“逐字符/逐块”流式输出场景。\n\n[English](./README.md) · [NPM](https://www.npmjs.com/package/stream-markdown)\n\n## 安装\n\n```sh\npnpm add stream-markdown shiki\n```\n\n## API 概览\n\n- `registerHighlight(options?)`：确保共享的 Shiki 高亮器已就绪；可按需加载 `langs` 与 `themes`。\n- `renderCodeWithTokens(highlighter, code, opts)`：将 tokens 渲染为 `<pre><code>` HTML（每行 `.line`）。`opts.tokenCache` / `opts.tokenCacheMaxEntries` 控制 token 缓存；`opts.htmlCache` / `opts.htmlCacheMaxEntries` 控制完整 HTML 缓存。\n- `updateCodeTokensIncremental(container, highlighter, code, opts)`：基于 tokens 的增量更新；若发现早前行出现分歧会回退到全量渲染。`opts.compareMode` 可选 `'signature'`（默认）或 `'innerHTML'`，也支持传入 `tokenLines` 以复用外部缓存的 tokens（例如 shiki-stream），避免重复高亮。`opts.tokenCache` / `opts.tokenCacheMaxEntries` 控制 token 缓存；`opts.htmlCache` / `opts.htmlCacheMaxEntries` 控制完整 HTML 缓存。\n- `createTokenIncrementalUpdater(container, highlighter, opts)`：工厂返回 `{ update, reset, dispose }`，用于高性能流式渲染。\n- `createScheduledTokenIncrementalUpdater(container, highlighter, opts)`：功能类似于 `createTokenIncrementalUpdater`，但会把 DOM / token 更新延迟到空闲时间执行，并优先渲染可见容器。注意 `update(code)` 为异步路径——同步返回 'noop'，最终结果会通过 `opts.onResult` 回调通知。\n- `createShikiStreamCachedRenderer(container, opts)`：与 `createShikiStreamRenderer` 接口一致，但底层复用 shiki-stream 的 grammarState，高亮追加内容时无需重新遍历已有前缀；可通过 `useGrammarState: false` 关闭。\n\n示例（通过 onResult 观察最终渲染结果）：\n\n```ts\nimport { createHighlighter } from 'shiki'\nimport { createScheduledTokenIncrementalUpdater } from 'stream-markdown'\n\nconst highlighter = await createHighlighter({ themes: ['vitesse-dark'], langs: ['typescript'] })\nconst container = document.getElementById('code')!\n\nconst updater = createScheduledTokenIncrementalUpdater(container, highlighter, {\n  lang: 'typescript',\n  theme: 'vitesse-dark',\n  onResult: result => console.log('scheduled render finished:', result),\n})\n\n// 注意：scheduled updater 的 update() 同步返回 'noop'；请通过 onResult 获取最终状态\nupdater.update('const a = 1')\nupdater.update('const a = 12')\n```\n\n提示：如果调用方需要同步的 UpdateResult（例如测试或依赖即时 DOM 更改的代码），请继续使用 `createTokenIncrementalUpdater`。\n- `createShikiStreamRenderer(container, { lang, theme, themes? })`：高阶门面；提供 `updateCode(code, lang?)` 与 `setTheme(theme)`，内部处理高亮器注册与增量更新器生命周期。`themes` 用于预注册所有主题。\n\n## 快速开始（推荐）\n\n```ts\nimport { createShikiStreamRenderer, registerHighlight } from 'stream-markdown'\n\n// 可选：预先加载语言与主题\nawait registerHighlight({ langs: ['typescript'], themes: ['vitesse-dark', 'vitesse-light'] })\n\nconst container = document.getElementById('out')!\nconst renderer = createShikiStreamRenderer(container, {\n  lang: 'typescript',\n  theme: 'vitesse-dark',\n  themes: ['vitesse-dark', 'vitesse-light'],\n})\n\nlet code = ''\nfor (const ch of 'const a = 1\\nconst b = 2\\n') {\n  code += ch\n  await renderer.updateCode(code)\n}\n\nawait renderer.setTheme('vitesse-light')\n```\n\n## 直接使用底层增量更新器\n\n```ts\nimport { createHighlighter } from 'shiki'\nimport { createTokenIncrementalUpdater } from 'stream-markdown'\n\nconst highlighter = await createHighlighter({ langs: ['ts'], themes: ['vitesse-dark'] })\nconst container = document.getElementById('code')!\nconst updater = createTokenIncrementalUpdater(container, highlighter, { lang: 'ts', theme: 'vitesse-dark' })\n\nupdater.update('let x = 1')\nupdater.update('let x = 12')\n```\n\n## 提示\n\n- 预注册主题：将全部候选主题传入 `themes`，或先 `registerHighlight({ themes: [...] })`，可以避免首次切换时的延迟或丢主题。\n- CRLF 归一化：内部会处理 CRLF，使 DOM 的 `textContent` 与源文本完全一致。\n- 结构约定：每一行对应 `.line`，空行也会有 `.line`，便于行号/选择/复制操作。\n\n## 渲染调度器与恢复助手\n\n当需要恢复大量 code block 或同时调度大量高亮更新时，库提供一个调度器与恢复助手来避免主线程被一次性占满：\n\n- `setTimeBudget(ms)` / `getTimeBudget()` — 调整共享调度器每帧用于处理渲染任务的时间（默认 8ms）。\n- `pause()` / `resume()` — 暂停或恢复调度器（暂停时任务仍保留在队列中）。\n- `drain()` — 立即同步运行所有队列任务（会绕过每帧预算，请谨慎使用）。\n- `getQueueLength()` — 获取当前队列长度，便于调试和观察。\n- `restoreWithVisibilityPriority(items, opts)` — 恢复辅助函数，优先渲染可见项，后台项目分批延迟执行；常用参数包括 `batchSize`、`staggerMs`、`drainVisible`。\n\n示例使用见：`USAGE_RENDER_SCHEDULER.zh-CN.md`。你也可以在 demo 页面实时调整 `timeBudget` 以观察效果。\n\n## 许可\n\nMIT\n","readmeFilename":"README.zh-CN.md"}