@deno-ext/console
v0.1.0
Published
deno console
Downloads
4
Readme
@deno-ext/console
Reusing Deno's console implementation for different JavaScript engines (such as boa, quickjs, etc.).
import { createConsole } from "../src"
const Console = createConsole(() => false)
const log = (s: string) => globalThis.console.log(
// Remove the trailing '\n'.
s.slice(0, -1)
)
const console = new Console(log)
console.log(1)
console.log([1, '2'])