{"_id":"shiki-stream","_rev":"8-ee3b512da2ecbcda99b7b92ca871e833","name":"shiki-stream","dist-tags":{"latest":"0.1.5"},"versions":{"0.0.1":{"name":"shiki-stream","version":"0.0.1","keywords":[],"author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","_id":"shiki-stream@0.0.1","maintainers":[{"name":"antfu","email":"anthonyfu117@hotmail.com"}],"homepage":"https://github.com/antfu/shiki-stream#readme","bugs":{"url":"https://github.com/antfu/shiki-stream/issues"},"dist":{"shasum":"f67cadcea638d821c6c244baef0f250175baab0a","tarball":"https://registry.npmjs.org/shiki-stream/-/shiki-stream-0.0.1.tgz","fileCount":10,"integrity":"sha512-2wzLfnvxncFTrYasnw1CpIa7g32bmqc+2zc61FQpJ5HCq7AFDu+ugkri5dbagBn/L1ZHcHbJSqS6LE8Wm9Sf1w==","signatures":[{"sig":"MEUCIBMB9vJ5QJLFHysI1Dinz8qJA8xZPGrY5eFb5XPcH6wQAiEAhyFylHuX28g27g0MLGaIPwge3CVXbYPAwVSbFJB7Pko=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13615},"main":"./dist/index.mjs","type":"module","_from":"file:shiki-stream-0.0.1.tgz","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":"./dist/index.mjs","./vue":"./dist/vue.mjs","./react":"./dist/react.mjs"},"funding":"https://github.com/sponsors/antfu","scripts":{"dev":"unbuild --stub","lint":"eslint .","test":"vitest","build":"unbuild","start":"tsx src/index.ts","release":"bumpp && pnpm publish","typecheck":"tsc --noEmit"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"_resolved":"/private/var/folders/30/nymxcyb909ggq2j5lwn7b_600000gn/T/950076d755d09cd6bdfac743709c40be/shiki-stream-0.0.1.tgz","_integrity":"sha512-2wzLfnvxncFTrYasnw1CpIa7g32bmqc+2zc61FQpJ5HCq7AFDu+ugkri5dbagBn/L1ZHcHbJSqS6LE8Wm9Sf1w==","repository":{"url":"git+https://github.com/antfu/shiki-stream.git","type":"git"},"_npmVersion":"10.9.2","description":"Streaming colorization for Shiki","directories":{},"lint-staged":{"*":"eslint --fix"},"sideEffects":false,"_nodeVersion":"22.13.1","dependencies":{"@shikijs/core":"^2.4.2","@shikijs/types":"^2.4.2"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","pnpm":"^10.4.1","vite":"^6.1.0","bumpp":"^10.0.3","react":"^19.0.0","shiki":"^2.4.2","eslint":"^9.20.1","vitest":"^3.0.5","unbuild":"^3.3.1","@antfu/ni":"^23.3.1","typescript":"^5.7.3","@types/node":"^22.13.4","lint-staged":"^15.4.3","@antfu/utils":"^9.1.0","@types/react":"^19.0.10","@shikijs/langs":"^2.4.2","@shikijs/themes":"^2.4.2","simple-git-hooks":"^2.11.1","@antfu/eslint-config":"^4.2.1","@shikijs/engine-javascript":"^2.4.2","@eslint-react/eslint-plugin":"^1.26.2"},"peerDependencies":{"vue":"^3.2.0","react":"^19.0.0"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"peerDependenciesMeta":{"vue":{"optional":true},"react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/shiki-stream_0.0.1_1739789276650_0.9103112600502612","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"shiki-stream","version":"0.1.0","keywords":[],"author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","_id":"shiki-stream@0.1.0","maintainers":[{"name":"antfu","email":"anthonyfu117@hotmail.com"}],"homepage":"https://github.com/antfu/shiki-stream#readme","bugs":{"url":"https://github.com/antfu/shiki-stream/issues"},"dist":{"shasum":"6c2d2ab7d69cd962b5e13b1b4e864d2c53b5c30f","tarball":"https://registry.npmjs.org/shiki-stream/-/shiki-stream-0.1.0.tgz","fileCount":11,"integrity":"sha512-2rCZMyo2cT6xBVnPaUb4drWkaNVMu3wRnKdgdMYB06urAZbf9xiL7Y1TKE6L0Qio+43DJerDEB7RSjD0Ni/Zpg==","signatures":[{"sig":"MEUCIG78CezNs+3ltPmwlHf7zRnYHa0eJn0s4WE986B/Qp/pAiEA0tIE6shRpqslGNzmGPS46egBB0IJEy1odsjc8dITxPc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17005},"main":"./dist/index.mjs","type":"module","_from":"file:shiki-stream-0.1.0.tgz","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":"./dist/index.mjs","./vue":"./dist/vue.mjs","./react":"./dist/react.mjs"},"funding":"https://github.com/sponsors/antfu","scripts":{"dev":"unbuild --stub","lint":"eslint .","play":"nr -C playground dev","test":"vitest","build":"unbuild","start":"tsx src/index.ts","release":"bumpp && pnpm publish","typecheck":"vue-tsc --noEmit","play:build":"nr -C playground build"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"_resolved":"/private/var/folders/30/nymxcyb909ggq2j5lwn7b_600000gn/T/61fe2f6041d1dd816841f16679f28db4/shiki-stream-0.1.0.tgz","_integrity":"sha512-2rCZMyo2cT6xBVnPaUb4drWkaNVMu3wRnKdgdMYB06urAZbf9xiL7Y1TKE6L0Qio+43DJerDEB7RSjD0Ni/Zpg==","repository":{"url":"git+https://github.com/antfu/shiki-stream.git","type":"git"},"_npmVersion":"10.9.2","description":"Streaming colorization for Shiki","directories":{},"lint-staged":{"*":"eslint --fix"},"sideEffects":false,"_nodeVersion":"22.13.1","dependencies":{"@shikijs/core":"^2.4.2"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","pnpm":"^10.4.1","vite":"^6.1.0","bumpp":"^10.0.3","react":"^19.0.0","shiki":"^2.4.2","eslint":"^9.20.1","vitest":"^3.0.5","unbuild":"^3.3.1","vue-tsc":"^2.2.2","@antfu/ni":"^23.3.1","typescript":"~5.7.3","@types/node":"^22.13.4","lint-staged":"^15.4.3","@antfu/utils":"^9.1.0","@types/react":"^19.0.10","@shikijs/langs":"^2.4.2","@shikijs/themes":"^2.4.2","simple-git-hooks":"^2.11.1","@antfu/eslint-config":"^4.2.1","@shikijs/engine-javascript":"^2.4.2","@eslint-react/eslint-plugin":"^1.26.2"},"peerDependencies":{"vue":"^3.2.0","react":"^19.0.0"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"peerDependenciesMeta":{"vue":{"optional":true},"react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/shiki-stream_0.1.0_1739857460037_0.3689024009718267","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"shiki-stream","version":"0.1.1","keywords":[],"author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","_id":"shiki-stream@0.1.1","maintainers":[{"name":"antfu","email":"anthonyfu117@hotmail.com"}],"homepage":"https://github.com/antfu/shiki-stream#readme","bugs":{"url":"https://github.com/antfu/shiki-stream/issues"},"dist":{"shasum":"949a13d3c6fa59d53786042b8d86ec5f00e65773","tarball":"https://registry.npmjs.org/shiki-stream/-/shiki-stream-0.1.1.tgz","fileCount":11,"integrity":"sha512-3WmzSq1Gi9Avv8QIowmMUjmU07YkC8VB3J4z/uDLb0TFEKbBeJgsjMIeF2SXvGyHe7bmRaBar6rbLXjStNVFKA==","signatures":[{"sig":"MEYCIQCjXWkqb7+XwfCNUfOXch4rgqPbxqSoSgA5AfNLXC2Y1wIhANvdee3am+ZRLpj6ML2egCTL6LI+sdm6pEMR1Gwz3Vzr","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17038},"main":"./dist/index.mjs","type":"module","_from":"file:shiki-stream-0.1.1.tgz","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":"./dist/index.mjs","./vue":"./dist/vue.mjs","./react":"./dist/react.mjs"},"funding":"https://github.com/sponsors/antfu","scripts":{"dev":"unbuild --stub","lint":"eslint .","play":"nr -C playground dev","test":"vitest","build":"unbuild","start":"tsx src/index.ts","release":"bumpp && pnpm publish","typecheck":"vue-tsc --noEmit","play:build":"nr -C playground build"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"_resolved":"/private/var/folders/30/nymxcyb909ggq2j5lwn7b_600000gn/T/03f1829e7108df1e51a08bcbc947de64/shiki-stream-0.1.1.tgz","_integrity":"sha512-3WmzSq1Gi9Avv8QIowmMUjmU07YkC8VB3J4z/uDLb0TFEKbBeJgsjMIeF2SXvGyHe7bmRaBar6rbLXjStNVFKA==","repository":{"url":"git+https://github.com/antfu/shiki-stream.git","type":"git"},"_npmVersion":"10.9.2","description":"Streaming colorization for Shiki","directories":{},"lint-staged":{"*":"eslint --fix"},"sideEffects":false,"_nodeVersion":"22.13.1","dependencies":{"@shikijs/core":"^2.4.0 || ^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","pnpm":"^10.4.1","taze":"^18.6.0","vite":"^6.1.0","bumpp":"^10.0.3","react":"^19.0.0","shiki":"^3.0.0","eslint":"^9.20.1","vitest":"^3.0.5","unbuild":"^3.3.1","vue-tsc":"^2.2.2","@antfu/ni":"^23.3.1","typescript":"~5.7.3","@types/node":"^22.13.4","lint-staged":"^15.4.3","@antfu/utils":"^9.1.0","@types/react":"^19.0.10","@shikijs/langs":"^3.0.0","@shikijs/themes":"^3.0.0","simple-git-hooks":"^2.11.1","@antfu/eslint-config":"^4.3.0","@shikijs/engine-javascript":"^3.0.0","@eslint-react/eslint-plugin":"^1.26.2"},"peerDependencies":{"vue":"^3.2.0","react":"^19.0.0"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"peerDependenciesMeta":{"vue":{"optional":true},"react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/shiki-stream_0.1.1_1739877504324_0.20857894131062737","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"shiki-stream","version":"0.1.2","keywords":[],"author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","_id":"shiki-stream@0.1.2","maintainers":[{"name":"antfu","email":"anthonyfu117@hotmail.com"}],"homepage":"https://github.com/antfu/shiki-stream#readme","bugs":{"url":"https://github.com/antfu/shiki-stream/issues"},"dist":{"shasum":"b7dab18a98dcb1cdd48365305138ea5b98bbb812","tarball":"https://registry.npmjs.org/shiki-stream/-/shiki-stream-0.1.2.tgz","fileCount":11,"integrity":"sha512-VtzJT2Sn2vwFoJEhKv71/M6Cl7e/m6p0vIVDgJsYKUpV7E+0zayJsuVuU2ltiSEeWUrqncHSPx8i/xKrRqK6Mw==","signatures":[{"sig":"MEUCIQDq0R/d45lXZ7znl7ZD3JtwCk7PH+la+dsQn+7z/WvB9wIgJTNIXYlaHdM5r/isEW/AsG94NoVqatLDp/mkbsO668I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21089},"main":"./dist/index.mjs","type":"module","_from":"file:shiki-stream-0.1.2.tgz","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":"./dist/index.mjs","./vue":"./dist/vue.mjs","./react":"./dist/react.mjs"},"funding":"https://github.com/sponsors/antfu","scripts":{"dev":"unbuild --stub","lint":"eslint .","play":"nr -C playground dev","test":"vitest","build":"unbuild","start":"tsx src/index.ts","release":"bumpp && pnpm publish","typecheck":"vue-tsc --noEmit","play:build":"nr -C playground build"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"_resolved":"/private/var/folders/30/nymxcyb909ggq2j5lwn7b_600000gn/T/e5a0cbaf3c3e0d7701588f6aa2307579/shiki-stream-0.1.2.tgz","_integrity":"sha512-VtzJT2Sn2vwFoJEhKv71/M6Cl7e/m6p0vIVDgJsYKUpV7E+0zayJsuVuU2ltiSEeWUrqncHSPx8i/xKrRqK6Mw==","repository":{"url":"git+https://github.com/antfu/shiki-stream.git","type":"git"},"_npmVersion":"10.9.2","description":"Streaming colorization for Shiki","directories":{},"lint-staged":{"*":"eslint --fix"},"sideEffects":false,"_nodeVersion":"22.13.1","dependencies":{"@shikijs/core":"^2.4.0 || ^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","pnpm":"^10.7.1","taze":"^19.0.4","vite":"^6.2.4","bumpp":"^10.1.0","react":"^19.1.0","shiki":"^3.2.1","eslint":"^9.23.0","vitest":"^3.1.1","unbuild":"^3.5.0","vue-tsc":"^2.2.8","@antfu/ni":"^24.3.0","typescript":"~5.8.2","@types/node":"^22.13.17","lint-staged":"^15.5.0","@antfu/utils":"^9.1.0","@types/react":"^19.1.0","@shikijs/langs":"^3.2.1","@shikijs/themes":"^3.2.1","simple-git-hooks":"^2.12.1","@antfu/eslint-config":"^4.11.0","eslint-plugin-react-hooks":"^5.2.0","@shikijs/engine-javascript":"^3.2.1","@eslint-react/eslint-plugin":"^1.40.1"},"peerDependencies":{"vue":"^3.2.0","react":"^19.0.0"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"peerDependenciesMeta":{"vue":{"optional":true},"react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/shiki-stream_0.1.2_1743595681590_0.8876442891542113","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"shiki-stream","version":"0.1.3","keywords":[],"author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","_id":"shiki-stream@0.1.3","maintainers":[{"name":"antfu","email":"anthonyfu117@hotmail.com"}],"homepage":"https://github.com/antfu/shiki-stream#readme","bugs":{"url":"https://github.com/antfu/shiki-stream/issues"},"dist":{"shasum":"21f1969e949ff80ccb0e76fda97660985a9fd88b","tarball":"https://registry.npmjs.org/shiki-stream/-/shiki-stream-0.1.3.tgz","fileCount":11,"integrity":"sha512-pDIqmaP/zJWHNV8bJKp0tD0CZ6OkF+lWTIvmNRLktlTjBjN3+durr19JarS657U1oSEf/WrSYmdzwr9CeD6m2Q==","signatures":[{"sig":"MEQCIC8IbM3lLJcdeFPgHJu7YaLDFwfCTQTvVzHzXSGJ1kjHAiA21tyYydF2X1ufVYoZ7walUG7s7Zh5w8t24fDXFOp2vA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/shiki-stream@0.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":21730},"main":"./dist/index.mjs","type":"module","_from":"file:shiki-stream-0.1.3.tgz","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":"./dist/index.mjs","./vue":"./dist/vue.mjs","./react":"./dist/react.mjs"},"funding":"https://github.com/sponsors/antfu","scripts":{"dev":"unbuild --stub","lint":"eslint .","play":"nr -C playground dev","test":"vitest","build":"unbuild","start":"tsx src/index.ts","release":"bumpp","typecheck":"vue-tsc --noEmit","play:build":"nr -C playground build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:be2de93c-2a7d-4a00-a9aa-1722517a4116"}},"_resolved":"/tmp/e6ef5f2b7653450f17783ce4d3223105/shiki-stream-0.1.3.tgz","_integrity":"sha512-pDIqmaP/zJWHNV8bJKp0tD0CZ6OkF+lWTIvmNRLktlTjBjN3+durr19JarS657U1oSEf/WrSYmdzwr9CeD6m2Q==","repository":{"url":"git+https://github.com/antfu/shiki-stream.git","type":"git"},"_npmVersion":"11.6.1","description":"Streaming colorization for Shiki","directories":{},"lint-staged":{"*":"eslint --fix"},"sideEffects":false,"_nodeVersion":"24.11.0","dependencies":{"@shikijs/core":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.20.6","pnpm":"^10.20.0","taze":"^19.9.0","vite":"^7.1.12","bumpp":"^10.3.1","react":"^19.2.0","shiki":"^3.14.0","eslint":"^9.39.1","vitest":"^4.0.7","unbuild":"^3.6.1","vue-tsc":"^3.1.3","@antfu/ni":"^27.0.1","typescript":"~5.9.3","@types/node":"^24.10.0","lint-staged":"^16.2.6","@antfu/utils":"^9.3.0","@types/react":"^19.2.2","@shikijs/langs":"^3.14.0","@shikijs/themes":"^3.14.0","simple-git-hooks":"^2.13.1","@antfu/eslint-config":"^6.2.0","eslint-plugin-react-hooks":"^7.0.1","@shikijs/engine-javascript":"^3.14.0","@eslint-react/eslint-plugin":"^2.3.1"},"peerDependencies":{"vue":"^3.2.0","react":"^19.0.0"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"peerDependenciesMeta":{"vue":{"optional":true},"react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/shiki-stream_0.1.3_1762326789030_0.5009102791907643","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"shiki-stream","version":"0.1.4","keywords":[],"author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","_id":"shiki-stream@0.1.4","maintainers":[{"name":"antfu","email":"anthonyfu117@hotmail.com"}],"homepage":"https://github.com/antfu/shiki-stream#readme","bugs":{"url":"https://github.com/antfu/shiki-stream/issues"},"dist":{"shasum":"6a3d1a2f9c336b7af33d71773f8f167c27a04a22","tarball":"https://registry.npmjs.org/shiki-stream/-/shiki-stream-0.1.4.tgz","fileCount":13,"integrity":"sha512-4pz6JGSDmVTTkPJ/ueixHkFAXY4ySCc+unvCaDZV7hqq/sdJZirRxgIXSuNSKgiFlGTgRR97sdu2R8K55sPsrw==","signatures":[{"sig":"MEUCIBCGtq47br6qybLzjYhrx9xXWYE7roylUd3OS65OAWQoAiEAzvdJUPYbbMCJ35ur3T2d8JLUc7GzYTMvDcBnGTqzOJ0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/shiki-stream@0.1.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":24061},"main":"./dist/index.mjs","type":"module","_from":"file:shiki-stream-0.1.4.tgz","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":"./dist/index.mjs","./vue":"./dist/vue.mjs","./react":"./dist/react.mjs","./solid":"./dist/solid.mjs"},"funding":"https://github.com/sponsors/antfu","scripts":{"dev":"unbuild --stub","lint":"eslint .","play":"nr -C playground dev","test":"vitest","build":"unbuild","start":"tsx src/index.ts","release":"bumpp","typecheck":"vue-tsc --noEmit","play:build":"nr -C playground build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:be2de93c-2a7d-4a00-a9aa-1722517a4116"}},"_resolved":"/tmp/b3fa31cb1b5919c8ca71568a69117e51/shiki-stream-0.1.4.tgz","_integrity":"sha512-4pz6JGSDmVTTkPJ/ueixHkFAXY4ySCc+unvCaDZV7hqq/sdJZirRxgIXSuNSKgiFlGTgRR97sdu2R8K55sPsrw==","repository":{"url":"git+https://github.com/antfu/shiki-stream.git","type":"git"},"_npmVersion":"11.6.2","description":"Streaming colorization for Shiki","directories":{},"lint-staged":{"*":"eslint --fix"},"resolutions":{"semver":"^7.7.3","chokidar":"^5.0.0"},"sideEffects":false,"_nodeVersion":"24.12.0","dependencies":{"@shikijs/core":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","pnpm":"^10.27.0","taze":"^19.9.2","vite":"^7.3.0","bumpp":"^10.3.2","react":"^19.2.3","shiki":"^3.20.0","eslint":"^9.39.2","vitest":"^4.0.16","unbuild":"^3.6.1","vue-tsc":"^3.2.2","@antfu/ni":"^28.1.0","typescript":"~5.9.3","@types/node":"^24.10.4","lint-staged":"^16.2.7","@antfu/utils":"^9.3.0","@types/react":"^19.2.7","@shikijs/langs":"^3.20.0","@shikijs/themes":"^3.20.0","simple-git-hooks":"^2.13.1","@antfu/eslint-config":"^6.7.3","eslint-plugin-react-hooks":"^7.0.1","@shikijs/engine-javascript":"^3.20.0","@eslint-react/eslint-plugin":"^2.5.1","eslint-plugin-react-refresh":"^0.4.26"},"peerDependencies":{"vue":"^3.2.0","react":"^19.0.0","solid-js":"^1.9.0"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"peerDependenciesMeta":{"vue":{"optional":true},"react":{"optional":true},"solid-js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/shiki-stream_0.1.4_1767686752462_0.15085048272997148","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"shiki-stream","version":"0.1.5","keywords":[],"author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","_id":"shiki-stream@0.1.5","maintainers":[{"name":"antfu","email":"anthonyfu117@hotmail.com"}],"homepage":"https://github.com/antfu/shiki-stream#readme","bugs":{"url":"https://github.com/antfu/shiki-stream/issues"},"dist":{"shasum":"2725d368c4e222e947aec1b3534e8c6b93c1030a","tarball":"https://registry.npmjs.org/shiki-stream/-/shiki-stream-0.1.5.tgz","fileCount":11,"integrity":"sha512-DzkqVlqf02Tp4zTFNgJp+3rOG2RkuoONBq+Pm2sHslAlJ5M0QbR1devn4dr9SgcBTrtHTf6Rqyj3wVJi0g16Bw==","signatures":[{"sig":"MEUCIQDEeKrHMZ7T3Nu+RPwemucKOd3wzarYuCzm+27QJusTwgIgASc1qx3T24jAFLH4fZwBAtgh2cJlTACURnXsusoMFQU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/shiki-stream@0.1.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":10793},"main":"./dist/index.mjs","type":"module","_from":"file:shiki-stream-0.1.5.tgz","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":"./dist/index.mjs","./vue":"./dist/vue.mjs","./react":"./dist/react.mjs","./solid":"./dist/solid.mjs"},"funding":"https://github.com/sponsors/antfu","scripts":{"dev":"node scripts/build.mjs","lint":"eslint .","play":"nr -C playground dev","test":"vitest","build":"node scripts/build.mjs","start":"tsx src/index.ts","release":"bumpp","typecheck":"vue-tsc --noEmit","play:build":"nr -C playground build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:be2de93c-2a7d-4a00-a9aa-1722517a4116"}},"_resolved":"/tmp/a8814a14826485ae73c073375ea77c3a/shiki-stream-0.1.5.tgz","_integrity":"sha512-DzkqVlqf02Tp4zTFNgJp+3rOG2RkuoONBq+Pm2sHslAlJ5M0QbR1devn4dr9SgcBTrtHTf6Rqyj3wVJi0g16Bw==","repository":{"url":"git+https://github.com/antfu/shiki-stream.git","type":"git"},"_npmVersion":"11.13.0","description":"Streaming colorization for Shiki. Moved to `@shikijs/stream`; this package re-exports from there.","directories":{},"lint-staged":{"*":"eslint --fix"},"resolutions":{"semver":"^7.7.3","chokidar":"^5.0.0"},"sideEffects":false,"_nodeVersion":"24.16.0","dependencies":{"@shikijs/stream":"^4.2.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","pnpm":"^10.27.0","taze":"^19.9.2","vite":"^7.3.0","bumpp":"^10.3.2","react":"^19.2.3","shiki":"^4.2.0","eslint":"^9.39.2","vitest":"^4.0.16","vue-tsc":"^3.2.2","@antfu/ni":"^28.1.0","typescript":"~5.9.3","@types/node":"^24.10.4","lint-staged":"^16.2.7","@types/react":"^19.2.7","@shikijs/core":"^4.2.0","@shikijs/langs":"^4.2.0","@shikijs/themes":"^4.2.0","simple-git-hooks":"^2.13.1","@antfu/eslint-config":"^6.7.3","eslint-plugin-react-hooks":"^7.0.1","@shikijs/engine-javascript":"^4.2.0","@eslint-react/eslint-plugin":"^2.5.1","eslint-plugin-react-refresh":"^0.4.26"},"peerDependencies":{"vue":"^3.2.0","react":"^19.0.0","solid-js":"^1.9.0"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"peerDependenciesMeta":{"vue":{"optional":true},"react":{"optional":true},"solid-js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/shiki-stream_0.1.5_1780459616154_0.6128800682293212","host":"s3://npm-registry-packages-npm-production"},"deprecated":"shiki-stream is now @shikijs/stream, please migrate by renaming the package"}},"time":{"created":"2025-02-17T10:47:56.649Z","modified":"2026-06-03T04:08:16.461Z","0.0.1":"2025-02-17T10:47:56.871Z","0.1.0":"2025-02-18T05:44:20.210Z","0.1.1":"2025-02-18T11:18:24.535Z","0.1.2":"2025-04-02T12:08:01.765Z","0.1.3":"2025-11-05T07:13:09.234Z","0.1.4":"2026-01-06T08:05:52.596Z","0.1.5":"2026-06-03T04:06:56.308Z"},"bugs":{"url":"https://github.com/antfu/shiki-stream/issues"},"author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","homepage":"https://github.com/antfu/shiki-stream#readme","keywords":[],"repository":{"url":"git+https://github.com/antfu/shiki-stream.git","type":"git"},"description":"Streaming colorization for Shiki. Moved to `@shikijs/stream`; this package re-exports from there.","maintainers":[{"name":"antfu","email":"anthonyfu117@hotmail.com"}],"readme":"# shiki-stream\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![bundle][bundle-src]][bundle-href]\n[![JSDocs][jsdocs-src]][jsdocs-href]\n[![License][license-src]][license-href]\n\nStreaming highlighting with Shiki. Useful for highlighting text streams like LLM outputs.\n\n[Live Demo](https://shiki-stream.netlify.app/)\n\n> [!IMPORTANT]\n> **This package has moved to [`@shikijs/stream`](https://www.npmjs.com/package/@shikijs/stream).**\n>\n> Starting with **`shiki-stream@4.2.0`**, `shiki-stream` is a thin re-export of `@shikijs/stream` — existing imports keep working without code changes, but **all new code should import from `@shikijs/stream`** directly. Future development and releases will happen there.\n>\n> ```diff\n> - import { CodeToTokenTransformStream } from 'shiki-stream'\n> - import { ShikiStreamRenderer } from 'shiki-stream/vue'\n> - import { ShikiStreamRenderer } from 'shiki-stream/react'\n> - import { ShikiStreamRenderer } from 'shiki-stream/solid'\n> + import { CodeToTokenTransformStream } from '@shikijs/stream'\n> + import { ShikiStreamRenderer } from '@shikijs/stream/vue'\n> + import { ShikiStreamRenderer } from '@shikijs/stream/react'\n> + import { ShikiStreamRenderer } from '@shikijs/stream/solid'\n> ```\n>\n> Docs: <https://shiki.style/packages/stream>\n\n## Usage\n\n> The snippets below show the new `@shikijs/stream` import paths. If you are still on `shiki-stream`, the same imports work — just swap the package name.\n\nCreate a transform stream with `CodeToTokenTransformStream` and `.pipeThrough` your text stream:\n\n```ts\nimport { CodeToTokenTransformStream } from '@shikijs/stream'\nimport { createHighlighter, createJavaScriptRegexEngine } from 'shiki'\n\n// Initialize the Shiki highlighter somewhere in your app\nconst highlighter = await createHighlighter({\n  langs: [/* ... */],\n  themes: [/* ... */],\n  engine: createJavaScriptRegexEngine()\n})\n\n// The ReadableStream<string> you want to highlight\nconst textStream = getTextStreamFromSomewhere()\n\n// Pipe the text stream through the token stream\nconst tokensStream = textStream\n  .pipeThrough(new CodeToTokenTransformStream({\n    highlighter,\n    lang: 'javascript',\n    theme: 'nord',\n    allowRecalls: true, // see explanation below\n  }))\n```\n\n#### `allowRecalls`\n\nDue fact that the highlighting might be changed based on the context of the code, the themed tokens might be changed as the stream goes on. Because the streams are one-directional, we introduce a special \"recall\" token to notify the receiver to discard the last tokens that has changed.\n\nBy default, `CodeToTokenTransformStream` only returns stable tokens, no recalls. This also means the tokens are outputted less fine-grained, usually line-by-line.\n\nFor stream consumers that can handle recalls (e.g. our Vue / React components), you can set `allowRecalls: true` to get more fine-grained tokens.\n\nTypically, recalls should be handled like:\n\n```ts\nconst receivedTokens: ThemedToken[] = []\n\ntokensStream.pipeTo(new WritableStream({\n  async write(token) {\n    if ('recall' in token) {\n      // discard the last `token.recall` tokens\n      receivedTokens.length -= token.recall\n    }\n    else {\n      receivedTokens.push(token)\n    }\n  }\n}))\n```\n\n### Consume the Token Stream\n\n#### Manually\n\n```ts\ntokensStream.pipeTo(new WritableStream({\n  async write(token) {\n    console.log(token)\n  }\n}))\n```\n\nOr in Node.js\n\n```ts\nfor await (const token of tokensStream) {\n  console.log(token)\n}\n```\n\n#### Vue\n\n```vue\n<script setup lang=\"ts\">\nimport { ShikiStreamRenderer } from '@shikijs/stream/vue'\n\n// get the token stream\n</script>\n\n<template>\n  <ShikiStreamRenderer :stream=\"tokensStream\" />\n</template>\n```\n\n#### React\n\n```tsx\nimport { ShikiStreamRenderer } from '@shikijs/stream/react'\n\nexport function MyComponent() {\n  // get the token stream\n  return <ShikiStreamRenderer stream={tokensStream} />\n}\n```\n\n#### Solid\n\n```tsx\nimport { ShikiStreamRenderer } from '@shikijs/stream/solid'\n\nexport function MyComponent() {\n  // get the token stream\n  return <ShikiStreamRenderer stream={tokensStream} />\n}\n```\n\n## Cached Renderer\n\nThis library also provides a simpfiled renderer API to render incrementally updated code string.\n\n> [!NOTE]\n> Experimental\n\n### Vue\n\n```vue\n<script setup lang=\"ts\">\nimport { ShikiCachedRenderer } from '@shikijs/stream/vue'\n\nconst highlighter = await createHighlighter({\n  langs: [/* ... */],\n  themes: [/* ... */],\n  engine: createJavaScriptRegexEngine()\n})\n\nconst code = ref('') // code should only be updated incrementally\n\n// for demo purposes\nonMounted(() => {\n  setInterval(() => {\n    code.value += '\\nconsole.log(\"Hello, world!\");'\n  }, 1000)\n})\n</script>\n\n<template>\n  <ShikiCachedRenderer\n    :highlighter=\"highlighter\"\n    :code=\"code\"\n    lang=\"js\"\n    theme=\"vitesse-light\"\n  />\n</template>\n```\n\n### React\n\nTODO:\n\n## Sponsors\n\n<p align=\"center\">\n  <a href=\"https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg\">\n    <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/>\n  </a>\n</p>\n\n## License\n\n[MIT](./LICENSE) License © [Anthony Fu](https://github.com/antfu)\n\n<!-- Badges -->\n\n[npm-version-src]: https://img.shields.io/npm/v/shiki-stream?style=flat&colorA=080f12&colorB=1fa669\n[npm-version-href]: https://npmjs.com/package/shiki-stream\n[npm-downloads-src]: https://img.shields.io/npm/dm/shiki-stream?style=flat&colorA=080f12&colorB=1fa669\n[npm-downloads-href]: https://npmjs.com/package/shiki-stream\n[bundle-src]: https://img.shields.io/bundlephobia/minzip/shiki-stream?style=flat&colorA=080f12&colorB=1fa669&label=minzip\n[bundle-href]: https://bundlephobia.com/result?p=shiki-stream\n[license-src]: https://img.shields.io/github/license/antfu/shiki-stream.svg?style=flat&colorA=080f12&colorB=1fa669\n[license-href]: https://github.com/antfu/shiki-stream/blob/main/LICENSE\n[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669\n[jsdocs-href]: https://www.jsdocs.io/package/shiki-stream\n","readmeFilename":"README.md"}