{"name":"@gerrit0/mini-shiki","version":"3.8.1","license":"MIT","_id":"@gerrit0/mini-shiki@3.8.1","maintainers":[{"name":"gerrit0","email":"gerrit@gerritbirkeland.com"}],"homepage":"https://github.com/Gerrit0/mini-shiki#readme","bugs":{"url":"https://github.com/Gerrit0/mini-shiki/issues"},"dist":{"shasum":"e94f9f53a9d63aa1863ca2ab1fdc8b53c70829e1","tarball":"http://registry-npm.ywwl.com/@gerrit0/mini-shiki/download/@gerrit0/mini-shiki-3.8.1.tgz","fileCount":9,"integrity":"sha512-HVZW+8pxoOExr5ZMPK15U79jQAZTO/S6i5byQyyZGjtNj+qaYd82cizTncwFzTQgiLo8uUBym6vh+/1tfJklTw==","signatures":[{"sig":"MEUCIFvQqoboxoTAIYfHbgIDH9QTPGhVClsa21eiE0U+yqbRAiEA8JXRok5AUGbVJEZOg7gWJB+fsFmFMX2RjgBoHMjDcoQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":640746,"size":196112,"noattachment":false,"key":"/@gerrit0/mini-shiki/-/@gerrit0/mini-shiki-3.8.1.tgz"},"type":"module","exports":{".":{"types":"./dist/shiki.d.ts","default":"./dist/shiki.js"},"./onig.wasm":{"import":"./dist/onig.wasm"}},"gitHead":"612e7ca025d28f8dae5eb189045aa983e1d5131e","scripts":{"test":"node --experimental-require-module --test","build":"./scripts/build.sh"},"_npmUser":{"name":"gerrit0","email":"gerrit@gerritbirkeland.com"},"repository":{"url":"git+https://github.com/Gerrit0/mini-shiki.git","type":"git"},"_npmVersion":"10.8.2","description":"This is a re-bundled version of [Shiki](https://shiki.style/) which strips out the dependencies which aren't necessary for [TypeDoc](https://typedoc.org/)'s usage.","directories":{},"_nodeVersion":"20.19.3","dependencies":{"@shikijs/langs":"^3.8.1","@shikijs/types":"^3.8.1","@shikijs/themes":"^3.8.1","@shikijs/vscode-textmate":"^10.0.2","@shikijs/engine-oniguruma":"^3.8.1"},"_hasShrinkwrap":false,"devDependencies":{"shiki":"^3.8.1","rollup":"4.27.4","semver":"7.6.3","@types/node":"^22.9.3","rollup-plugin-dts":"^6.1.1","dts-bundle-generator":"^9.5.1","@rollup/plugin-typescript":"12.1.1","@rollup/plugin-node-resolve":"15.3.0"},"_npmOperationalInternal":{"tmp":"tmp/mini-shiki_3.8.1_1752797653440_0.8748069256054791","host":"s3://npm-registry-packages-npm-production"},"readme":"# @gerrit0/mini-shiki\n\nThis is a re-bundled version of [Shiki](https://shiki.style) which strips out\nthe dependencies which aren't necessary for [TypeDoc](https://typedoc.org/)'s usage.\n\n## Why?\n\nCompare Shiki's dependency tree:\n\n<img src=\"static/shiki-dependency-tree.svg\">\n\nTo this package's dependency tree:\n\n<img src=\"static/mini-shiki-dependency-tree.svg\">\n\nThe Shiki maintainers [have declined](https://github.com/shikijs/shiki/issues/844) to split\nup the package in a way which makes it possible to avoid these dependencies when just relying\non shikijs published packages.\n\n## Releases\n\nThis package will be released and keep the same major/minor version numbers as Shiki.\nPatch versions will generally be the same as Shiki, but may differ if adjustments are\nnecessary to fix compatibility issues.\n\n## ESM / CommonJS\n\nThis package is ESM, but does not use top level await, so may be `require`d in\nNode 23, or Node 20.17+ with the `--experimental-require-module` flag.\n\n## Usage\n\n```js\nimport {\n  codeToTokensWithThemes,\n  createShikiInternal,\n  createOnigurumaEngine,\n  bundledLanguages,\n  bundledThemes,\n  loadBuiltinWasm,\n} from \"@gerrit0/mini-shiki\";\n\nawait loadBuiltinWasm();\nconst shiki = await createShikiInternal({\n  engine: createOnigurumaEngine(),\n  langs: [bundledLanguages.typescript],\n  themes: [bundledThemes[\"light-plus\"]],\n});\n\nconst lines = codeToTokensWithThemes(shiki, \"console.log('Hello world!')\", {\n  themes: { light: \"light-plus\" },\n  lang: \"typescript\",\n});\n```\n","publish_time":1752797653692,"_cnpm_publish_time":1752797653692,"dist-tags":{"latest":"3.23.0"}}