@gerrit0/mini-shiki
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.
Last updated 2 months ago by GitHub Actions .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @gerrit0/mini-shiki 
SYNC missed versions from official npm registry.

@gerrit0/mini-shiki

This is a re-bundled version of Shiki which strips out the dependencies which aren't necessary for TypeDoc's usage.

Why?

Compare Shiki's dependency tree:

To this package's dependency tree:

The Shiki maintainers have declined to split up the package in a way which makes it possible to avoid these dependencies when just relying on shikijs published packages.

Releases

This package will be released and keep the same major/minor version numbers as Shiki. Patch versions will generally be the same as Shiki, but may differ if adjustments are necessary to fix compatibility issues.

ESM / CommonJS

This package is ESM, but does not use top level await, so may be required in Node 23, or Node 20.17+ with the --experimental-require-module flag.

Usage

import {
  codeToTokensWithThemes,
  createShikiInternal,
  createOnigurumaEngine,
  bundledLanguages,
  bundledThemes,
  loadBuiltinWasm,
} from "@gerrit0/mini-shiki";

await loadBuiltinWasm();
const shiki = await createShikiInternal({
  engine: createOnigurumaEngine(),
  langs: [bundledLanguages.typescript],
  themes: [bundledThemes["light-plus"]],
});

const lines = codeToTokensWithThemes(shiki, "console.log('Hello world!')", {
  themes: { light: "light-plus" },
  lang: "typescript",
});

Current Tags

  • 3.23.0                                ...           latest (2 months ago)

52 Versions

  • 3.23.0                                ...           2 months ago
  • 3.22.0                                ...           2 months ago
  • 3.21.0                                ...           3 months ago
  • 3.20.0                                ...           4 months ago
  • 3.19.0                                ...           4 months ago
  • 3.18.0                                ...           4 months ago
  • 3.17.1                                ...           4 months ago
  • 3.17.0                                ...           4 months ago
  • 3.15.0                                ...           5 months ago
  • 3.14.0                                ...           5 months ago
  • 3.13.1                                ...           6 months ago
  • 3.13.0                                ...           7 months ago
  • 3.12.2                                ...           7 months ago
  • 3.12.1                                ...           7 months ago
  • 3.12.0                                ...           7 months ago
  • 3.11.0                                ...           8 months ago
  • 3.9.2                                ...           8 months ago
  • 3.9.1                                ...           8 months ago
  • 3.9.0                                ...           8 months ago
  • 3.8.1                                ...           9 months ago
  • 3.8.0                                ...           9 months ago
  • 3.7.0                                ...           10 months ago
  • 3.6.0                                ...           10 months ago
  • 3.5.0                                ...           10 months ago
  • 3.4.2                                ...           a year ago
  • 3.4.1                                ...           a year ago
  • 3.4.0                                ...           a year ago
  • 3.3.0                                ...           a year ago
  • 3.2.3                                ...           a year ago
  • 3.2.2                                ...           a year ago
  • 3.2.1                                ...           a year ago
  • 3.1.0                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 2.4.2                                ...           a year ago
  • 2.4.1                                ...           a year ago
  • 2.3.2                                ...           a year ago
  • 2.3.1                                ...           a year ago
  • 2.3.0                                ...           a year ago
  • 2.2.0                                ...           a year ago
  • 2.1.0                                ...           a year ago
  • 2.0.3                                ...           a year ago
  • 1.27.2                                ...           a year ago
  • 1.27.0                                ...           a year ago
  • 1.26.1                                ...           a year ago
  • 1.25.1                                ...           a year ago
  • 1.24.4                                ...           a year ago
  • 1.24.3                                ...           a year ago
  • 1.24.2                                ...           a year ago
  • 1.24.1                                ...           a year ago
  • 1.24.0                                ...           a year ago
  • 1.23.2                                ...           a year ago
  • 1.23.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (9)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |