katze

1.0.1 • Public • Published

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 !!!`!

Readme

Keywords

Package Sidebar

Install

npm i katze

Weekly Downloads

6

Version

1.0.1

License

MIT

Unpacked Size

1.36 kB

Total Files

3

Last publish

Collaborators

  • pmb00