jsconsole

Wrapper for the console object for the JavaScript backend.

Types

Console {...}{.importc.} = ref object of RootObj
  Source Edit

Procs

proc convertToConsoleLoggable[T](v: T): RootRef {...}{.importcpp: "#".}
  Source Edit
proc clear(console: Console) {...}{.importcpp: "clear".}
https://developer.mozilla.org/en-US/docs/Web/API/Console/clear   Source Edit
proc count(console: Console; label = "".cstring) {...}{.importcpp: "count".}
https://developer.mozilla.org/en-US/docs/Web/API/Console/count   Source Edit
proc countReset(console: Console; label = "".cstring) {...}{.importcpp: "countReset".}
https://developer.mozilla.org/en-US/docs/Web/API/Console/countReset   Source Edit
proc group(console: Console; label = "".cstring) {...}{.importcpp: "group".}
https://developer.mozilla.org/en-US/docs/Web/API/Console/group   Source Edit
proc groupCollapsed(console: Console; label = "".cstring) {...}{.
    importcpp: "groupCollapsed".}
https://developer.mozilla.org/en-US/docs/Web/API/Console/groupCollapsed   Source Edit
proc groupEnd(console: Console) {...}{.importcpp: "groupEnd".}
https://developer.mozilla.org/en-US/docs/Web/API/Console/groupEnd   Source Edit
proc time(console: Console; label = "".cstring) {...}{.importcpp: "time".}
https://developer.mozilla.org/en-US/docs/Web/API/Console/time   Source Edit
proc timeEnd(console: Console; label = "".cstring) {...}{.importcpp: "timeEnd".}
https://developer.mozilla.org/en-US/docs/Web/API/Console/timeEnd   Source Edit
proc timeLog(console: Console; label = "".cstring) {...}{.importcpp: "timeLog".}
https://developer.mozilla.org/en-US/docs/Web/API/Console/timeLog   Source Edit

Macros

macro log(console: Console; args: varargs[RootRef, convertToConsoleLoggable]): untyped
  Source Edit
macro debug(console: Console; args: varargs[RootRef, convertToConsoleLoggable]): untyped
  Source Edit
macro info(console: Console; args: varargs[RootRef, convertToConsoleLoggable]): untyped
  Source Edit
macro error(console: Console; args: varargs[RootRef, convertToConsoleLoggable]): untyped
  Source Edit
macro warn(console: Console; args: varargs[RootRef, convertToConsoleLoggable]): untyped
https://developer.mozilla.org/en-US/docs/Web/API/Console/warn   Source Edit