Small debugging utility
$ npm i -S @tadashi/debug
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
You must set the environment variables
DEBUG_PREFIX
Default is:@tadashi
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!')
- BTC: bc1q7famhuj5f25n6qvlm3sssnymk2qpxrfwpyq7g4
MIT © TJ Holowaychuk
MIT © Thiago Lagden