🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@kldzj/debug

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kldzj/debug

A simple debugger.

1.0.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

Just another simple JavaScript debugger.

Installation

Using yarn:

$ yarn add @kldzj/debug

Using npm:

$ npm i -S @kldzj/debug

Example usage

// demo.js
import { createDebugger } from "@kldzj/debug";

const debug = createDebugger("test");
debug.debug("Hello World");

// you can enable/disable the debugger during runtime:
debug.disable();
debug.enable();

// you can also create child debuggers:
const child = debug.createChild("comp");

child.debug("Hello World");
// would log: [test:comp] Hello World

// ...

// if you don't want to handle the `Debugger` class instance
// you can create a simple function interface right away:
const debug = createDebugger("test").createFunction();
debug("Hello World");
# In your terminal:
$ DEBUG=test:* node demo.js

Keywords

debug

FAQs

Package last updated on 18 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts