0.3.3 • Published 1 year ago

@dashkite/kaiko v0.3.3

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
1 year ago

Kaikō

A logging runtime for JavaScript

import * as log from "@dashkite/kaiko"

foo = (bar) ->
  log.push "foo"
  log.info bar
  # do something ...
  log.warn "uh-oh"
  # do some other things ...
  log.pop "foo"

Later, you can write the log as rich JSON (meaning the objects JSON normally ignores are converted into values it can serialize for reference purposes):

log.write process.stdout

From there, you can pipe the output to a tool like fx.

npm test | fx

Or, if you’re in the browser, just access the JSON:

log.toJSON()

Installation

npm i @dashkite/kaiko
0.3.2

1 year ago

0.3.3

1 year ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago