Skip to main content
Module

x/deno/js/console.ts>Console

A modern runtime for JavaScript and TypeScript.
Go to Latest
class Console
import { Console } from "https://deno.land/x/deno@v0.1.12/js/console.ts";

Constructors

new
Console(printFunc: PrintFunc)

Properties

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

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

debug

Writes the arguments to stdout

dir: (obj: any, options?: ConsoleOptions) => unknown

Writes the properties of the supplied obj to stdout

error

Writes the arguments to stdout

info

Writes the arguments to stdout

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

Writes the arguments to stdout

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

Writes the arguments to stdout