@tadashi/debug
v4.1.2
Published
Small debugging utility
Downloads
15
Readme
debug
Small debugging utility
Install
$ npm i -S @tadashi/debug
API
The API is the same of https://github.com/debug-js/debug
It's just a preset: https://github.com/debug-js/debug#output-streams
Environment Variables
⚠️ Warning
You must set the environment variables
DEBUG_PREFIX
Default is:@tadashi
Usage
import * as debug from '../src/debug.js'
// log
debug.log('Apenas um show')
// error
debug.error('Crap!')
// info
debug.info('This is an information')
// warn
debug.warn('Atention!')
Donate ❤️
- BTC: bc1q7famhuj5f25n6qvlm3sssnymk2qpxrfwpyq7g4
License
MIT © TJ Holowaychuk
MIT © Thiago Lagden