# colondebug

> colondebug is a debug tool with console.xxx

Latest version **1.0.3** (published 2021-02-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install colondebug
pnpm add colondebug
yarn add colondebug
bun add colondebug
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2021-02-23 |
| First published | 2021-02-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | langshu |

## Links

- npm: https://www.npmjs.com/package/colondebug
- Repository: https://github.com/i5ting/colondebug
- Homepage: https://github.com/i5ting/colondebug#readme
- Issues: https://github.com/i5ting/colondebug/issues
- npm.io page: https://npm.io/package/colondebug

## Dependencies (1)

- [debug](https://npm.io/package/debug.md) ^4.3.1

## Recent versions

- 1.0.3 (latest) — 2021-02-23
- 1.0.0 — 2021-02-23

## README

# colondebug

colondebug is a debug tool with console.xxx

[![npm version](https://badge.fury.io/js/colondebug.svg)](http://badge.fury.io/js/colondebug)

## Install

    $ npm install --save colondebug

## Usage 

此种情况，colondebug就是debug模块。

```js
const debug = require("colondebug")("ts-junit");
  
debug(Object.keys(console))
```

当不想加入`DEBUG=xx`的时候，可以在key后面加入console.xxx

```js
const debug = require("colondebug")("ts-junit:dir");
  
debug(Object.keys(console))
```

其中冒号后面，可以接入的参数有如下。

```
[
  'log',            'warn',
  'dir',            'time',
  'timeEnd',        'timeLog',
  'trace',          'assert',
  'clear',          'count',
  'countReset',     'group',
  'groupEnd',       'table',
  'debug',          'info',
  'dirxml',         'error',
  'groupCollapsed', 'Console',
  'profile',        'profileEnd',
  'timeStamp',      'context'
]
```

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

## 版本历史

- v1.0.0 初始化版本

## 欢迎fork和反馈

- write by `i5ting` i5ting@126.com

如有建议或意见，请在issue提问或邮件

## License

this repo is released under the [MIT
License](http://www.opensource.org/licenses/MIT).

---
_Source: https://npm.io/package/colondebug · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
