Skip to main content

Terminal output

import {highlight} from '@lumis-sh/lumis'
import {terminal} from '@lumis-sh/lumis/formatters'
import rust from '@lumis-sh/lumis/langs/rust'
import frappe from '@lumis-sh/themes/catppuccin_frappe'
const ansi = await highlight('fn main() {}', terminal({language: rust, theme: frappe}))
console.log(ansi)