Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
/ shiki-es Public archive

Standalone build of shiki fully compatible with all ESM environments.

Notifications You must be signed in to change notification settings

pi0/shiki-es

Repository files navigation

shiki-es

Standalone build of shiki fully compatible with all ESM environments.

Important

Please migrate to shikiji

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

About

Standalone build of shiki fully compatible with all ESM environments.

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published