katze
v1.0.1
Published
Debugging can become a really complex issue. "Is the port my debugger wants to open free?" and "Do I have the right browser extensions installed and configured?" are just a few of the questions that arise in the mind of the developer.
Downloads
5
Readme
katze
Debugging can become a really complex issue. "Is the port my debugger wants to open free?" and "Do I have the right browser extensions installed and configured?" are just a few of the questions that arise in the mind of the developer.
In reality, the developer simply wants to call katze()
to see if a particular code path is being entered. Example:
import katze from 'katze';
if (someCondition) {
// do stuff
} else {
// console.traces `KATZE !!!`!
katze("!!!")
}
This npm module simplifies the whole thing: it provides not only katze()
, but also katzeFactory()
, with which the advanced functionality can be used. Example:
import { katzeFactory } from 'katze';
const myKatze = katzeFactory({level: 'warn'}, 'schnucki')
myKatze("!!!") // console.warns `KATZE schnucki !!!`!