Skip to main content
Module

x/denoversion/lib/lib.deno_runtime.d.ts>deno.Console

Deno cli to manage and bump release versions.
Latest
class deno.Console
import { deno } from "https://deno.land/x/denoversion@v1.0.2/lib/lib.deno_runtime.d.ts";
const { Console } = deno;

Constructors

new
Console(printFunc: PrintFunc)

Properties

private
printFunc
assert: (condition?: boolean, ...args: any[]) => void

Writes an error message to stdout if the assertion is false. If the assertion is true, nothing happens.

ref: https://console.spec.whatwg.org/#assert

clear: () => void
collapsedAt: number | null
count: (label?: string) => void
countReset: (label?: string) => void
debug: (...args: any[]) => void

Writes the arguments to stdout

dir: (obj: any, options?: Partial<{ showHidden: boolean; depth: number; colors: boolean; indentLevel: number; collapsedAt: number | null; }>) => void

Writes the properties of the supplied obj to stdout

error: (...args: any[]) => void

Writes the arguments to stdout

group: (...label: unknown[]) => void
groupCollapsed: (...label: unknown[]) => void
groupEnd: () => void
indentLevel: number
info: (...args: any[]) => void

Writes the arguments to stdout

log: (...args: any[]) => void

Writes the arguments to stdout

table: (data: any, properties?: string[] | undefined) => void
time: (label?: string) => void
timeEnd: (label?: string) => void
timeLog: (label?: string, ...args: any[]) => void
warn: (...args: any[]) => void

Writes the arguments to stdout