@kiwicom/debug
TypeScript icon, indicating that this package has built-in type declarations

1.10.1 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @kiwicom/debug

Weekly Downloads

2

Version

1.10.1

License

UNLICENSED

Unpacked Size

10 kB

Total Files

9

Last publish

Collaborators

  • mvidalgarcia
  • dsil
  • jakubzaba
  • robincsl_kiwi
  • kiwicom.platform
  • dinodsaurus