Standalone build of shiki fully compatible with all ESM environments.
pnpm add shikey
# yarn
yarn add shikey
# npm
npm i shikey
import { getHighlighter } from 'shikey'
const highlighter = await getHighlighter({ theme: 'nord' })
console.log(highlighter.codeToHtml('console.log(\'shiki\');', { lang: 'js' }))
MIT