Documentation
¶
Overview ¶
Package console provides Node-style console logging for QuickJS.
Index ¶
Constants ¶
View Source
const ModuleName = "console"
Variables ¶
This section is empty.
Functions ¶
func InstallGlobal ¶
InstallGlobal installs the default console on globalThis.console.
func InstallGlobalWithPrinter ¶
InstallGlobalWithPrinter installs a console using printer on globalThis.console.
func Module ¶
func Module() module.Definition
Module returns the console and node:console ESM definition using the default printer.
func ModuleWithPrinter ¶
func ModuleWithPrinter(printer Printer) module.Definition
ModuleWithPrinter returns a console ESM definition using printer.
Types ¶
type StdPrinter ¶
StdPrinter adapts output functions to Printer.
func (StdPrinter) Error ¶
func (p StdPrinter) Error(message string)
func (StdPrinter) Log ¶
func (p StdPrinter) Log(message string)
func (StdPrinter) Warn ¶
func (p StdPrinter) Warn(message string)
Click to show internal directories.
Click to hide internal directories.