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

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i @dokuhero/debug

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

3.48 kB

Total Files

5

Last publish

Collaborators

  • budiadiono