{"type":"module","license":"MIT","name":"@gerrit0/mini-shiki","version":"3.23.0","exports":{".":{"types":"./dist/shiki.d.ts","default":"./dist/shiki.js"},"./onig.wasm":{"import":"./dist/onig.wasm"}},"repository":{"type":"git","url":"git+https://github.com/Gerrit0/mini-shiki.git"},"scripts":{"build":"./scripts/build.sh","test":"node --experimental-require-module --test"},"devDependencies":{"@rollup/plugin-node-resolve":"15.3.0","@rollup/plugin-typescript":"12.1.1","@types/node":"^22.9.3","dts-bundle-generator":"^9.5.1","rollup":"4.27.4","rollup-plugin-dts":"^6.1.1","semver":"7.6.3","shiki":"^3.23.0","tslib":"^2.8.1"},"dependencies":{"@shikijs/engine-oniguruma":"^3.23.0","@shikijs/langs":"^3.23.0","@shikijs/themes":"^3.23.0","@shikijs/types":"^3.23.0","@shikijs/vscode-textmate":"^10.0.2"},"gitHead":"c86246b920421745f76c9d729ab5c27557828aa5","_id":"@gerrit0/mini-shiki@3.23.0","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.","bugs":{"url":"https://github.com/Gerrit0/mini-shiki/issues"},"homepage":"https://github.com/Gerrit0/mini-shiki#readme","_nodeVersion":"20.20.0","_npmVersion":"11.11.0","dist":{"integrity":"sha512-bEMORlG0cqdjVyCEuU0cDQbORWX+kYCeo0kV1lbxF5bt4r7SID2l9bqsxJEM0zndaxpOUT7riCyIVEuqq/Ynxg==","shasum":"d9414f3080b88303b18f3a311846e37e424d800c","tarball":"http://registry-npm.ywwl.com/@gerrit0/mini-shiki/download/@gerrit0/mini-shiki-3.23.0.tgz","fileCount":9,"unpackedSize":646505,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@gerrit0%2fmini-shiki@3.23.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCPCl7fyHeGEBHnNKhaVEb8SbKiW4wUwN/tH4RdkjjX1QIgF4mzKRs9IiHsPMluD/EWtsvUBqqtFjekAAJk7Ukr20s="}],"size":197016,"noattachment":false,"key":"/@gerrit0/mini-shiki/-/@gerrit0/mini-shiki-3.23.0.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bcd8353a-0b85-49bf-94d2-2367b648ee2f"}},"directories":{},"maintainers":[{"name":"gerrit0","email":"gerrit@gerritbirkeland.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mini-shiki_3.23.0_1772065010640_0.3397831482827818"},"_hasShrinkwrap":false,"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":1772065010905,"_cnpm_publish_time":1772065010905,"dist-tags":{"latest":"3.23.0"}}