1.1.6 • Published 2 years ago

khapu-debugger v1.1.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

alt


Introduction

The package has been developed to support you debug in an easier way. With khapu-debugger, you are going to forget your trouble when logging variable, because:

  • Provides an intuitive interface, vivid colors
  • Convenient customization (showing level if the variable is a object or array)
  • Sepecifily, you can read function in the variable


Install

npm i khapu-debugger

Usage

const khapu = require('khapu-debugger')

const value = {
    abc: {
        abc1: {
            abc11: {
                abc111: {
                    abc1111: "abc",
                    abc1112: {
                    }
                },
                abc112: 112,
                abc113: [1, 1, 3]
            },
            abc11: demo
        },
        abc2: "abc2"
    },
    xyz: "xyz"
}

const secondValue = "secondValue"

function demo () {
    const num = 123
    const str = "123";
    return numb + str;
}

khapu.show(value)

You can show with multiple params

khapu.showMultiple([value, secondeValue])

Set options to use

const options = {
    stop: true, //boolean //used if you want to stop program when debugging
    showFunction: true, //boolean //used if you want to view function in the debugging variable
    showLevel: null //number //used to set level which you want to show, if its value is null, all level of the variable
}


khapu.show(value, options)
//or
khapu.showMultiple([value, secondValue], options)

Demo results

For first paragraph code

alt

For seconde paragraph code

alt

For final paragraph code

alt


Maintain

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.1

2 years ago

1.0.2

2 years ago

1.0.0

2 years ago