Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/crayon/src/extensions/literal.ts>compileLiteral

🖍️ Terminal styling done light and fast.
Go to Latest
function compileLiteral
import { compileLiteral } from "https://deno.land/x/crayon@3.3.2/src/extensions/literal.ts";

Implementation for Crayon's prototype.literal call when using ES6 Literal Templates

Parameters

callSite: readonly string[]
...substitutions: unknown[]

Returns

string