@dokuhero/debug
v0.0.2
Published
Simple Javascript debug utility
Downloads
3
Maintainers
Readme
Debug
Simple Javascript debug utility to display log (like console.log) in Node environment as long as process.env.NODE_ENV
is set to true
. Inspired by https://github.com/visionmedia/debug.
Installation
Using npm:
npm i -S @dokuhero/debug
or yarn:
yarn add @dokuhero/debug
Usage
import { Debug } from '@dokuhero/debug'
// create new debug instance
const debug = Debug('foo')
// use debug to display log message
debug('the log message here...')
License
MIT