Skip to content

nberlette/shikey

Repository files navigation

shikey

Standalone build of shiki fully compatible with all ESM environments.

Install

pnpm add shikey
# yarn
yarn add shikey
# npm
npm i shikey

Usage

import { getHighlighter } from 'shikey'

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

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

License

MIT