@kiwicom/debug
Small utility to mimic the functionality of the [debug](https://github.com/visionmedia/debug) npm module.
Last updated 11 days ago by kubajz .
UNLICENSED · Original npm · Tarball · package.json
$ cnpm install @kiwicom/debug 
SYNC missed versions from official npm registry.

@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

Current Tags

  • 1.8.0                                ...           latest (11 days ago)

4 Versions

  • 1.8.0                                ...           11 days ago
  • 1.7.0                                ...           2 months ago
  • 1.6.0                                ...           2 months ago
  • 1.5.0                                ...           2 months ago

Copyright 2014 - 2016 © taobao.org |