Package detail

shiki-es

unjs235.4kMITdeprecated0.14.0

Please migrate to https://github.com/antfu/shikiji

Standalone build of shiki fully compatible with all ESM environments.

readme

shiki-es

Standalone build of shiki fully compatible with all ESM environments.

Usage

Install:

#pnpm
pnpm i shiki-es

# npm
npm i shiki-es

# yarn
yarn add shiki-es
import { getHighlighter } from "shiki-es";

const highlighter = await getHighlighter({ theme: "nord" });

console.log(highlighter.codeToHtml(`console.log('shiki');`, { lang: "js" }));

License

MIT

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

v0.14.0

compare changes

🩹 Fixes

  • Fixed package.json types when using anything other than "moduleResolution": "commonJs" (#7)
  • Replace VSCODE_TEXTMADE_DEBUG with false (#6)

🏡 Chore

  • Upgrade shiki & unbuild dependencies (#8)
  • Switch to pnpm (06f6cff)
  • Update repo (1881485)
  • Add renovate.json (3a4335b)
  • Add missing @types/node (a956dc7)
  • Update build.config (acd778f)
  • Remove fs-extra dependency` (469619c)
  • Update lockfile (014f4cd)

❤️ Contributors

0.1.2 (2022-02-15)

Bug Fixes

  • preserve assets structure (d33301d)

0.1.1 (2022-02-15)

Features

Bug Fixes

  • use globalThis to access fetch and shiki_fetch (df379b1)