Socket
Book a DemoInstallSign in
Socket

@kiwicom/debug

Package Overview
Dependencies
Maintainers
13
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kiwicom/debug

Small utility to mimic the functionality of the [debug](https://github.com/visionmedia/debug) npm module.

latest
npmnpm
Version
1.10.1
Version published
Maintainers
13
Created
Source

@kiwicom/debug

Small utility to mimic the functionality of the debug npm module.

Usage

import { debug } from '@kiwicom/debug';

const log = debug('my-module:my-class');

log('Log this message and add some `monospaced` text');

To see the logs in your Developer Tools

localStorage.setItem('DEBUG', '*'); // show all messages (including the example above)

localStorage.setItem('DEBUG', 'my-module:*'); // show all messages from `my-module` (including the example above)

localStorage.setItem('DEBUG', 'my-module:my-class'); // show messages only from `my-module:my-class` (including the example above)

Screenshot

screenshot of @kiwicom/debug in action

FAQs

Package last updated on 19 Feb 2021

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