https://github.com/lagden/debug
Small debugging utility
https://github.com/lagden/debug
console debug error info log prefix warn
Last synced: 3 months ago
JSON representation
Small debugging utility
- Host: GitHub
- URL: https://github.com/lagden/debug
- Owner: lagden
- License: mit
- Created: 2017-10-12T19:37:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-01-29T02:26:48.000Z (about 1 year ago)
- Last Synced: 2025-03-25T09:51:43.492Z (about 1 year ago)
- Topics: console, debug, error, info, log, prefix, warn
- Language: Shell
- Homepage:
- Size: 332 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# debug
[![NPM version][npm-img]][npm] [![Build Status][ci-img]][ci] [![Coverage Status][coveralls-img]][coveralls]
[npm-img]: https://img.shields.io/npm/v/@tadashi/debug.svg
[npm]: https://www.npmjs.com/package/@tadashi/debug
[ci-img]: https://github.com/lagden/debug/actions/workflows/nodejs.yml/badge.svg
[ci]: https://github.com/lagden/debug/actions/workflows/nodejs.yml
[coveralls-img]: https://coveralls.io/repos/github/lagden/debug/badge.svg?branch=master
[coveralls]: https://coveralls.io/github/lagden/debug?branch=master
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
```js
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](tj@vision-media.ca)\
MIT © [Thiago Lagden](https://github.com/lagden)