# tunk-debug

> debug tools for tunk

Latest version **3.5.0** (published 2018-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install tunk-debug
pnpm add tunk-debug
yarn add tunk-debug
bun add tunk-debug
```

## 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 | 3.5.0 |
| Published | 2018-01-03 |
| First published | 2017-12-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | steven chen |
| Maintainers | stevencjc |

## Links

- npm: https://www.npmjs.com/package/tunk-debug
- npm.io page: https://npm.io/package/tunk-debug

## Recent versions

- 3.5.0 (latest) — 2018-01-03
- 3.0.1 — 2017-12-04
- 3.0.0 — 2017-12-04

## README

# tunk-debug

tunk开发的debug工具，可全局或精确配置到debug某个方法，设置了 debug:true 之后的动作执行，在console中会有相应详细信息输出


## Usage
````shell
npm install tunk-debug
````
````javascript
import tunkDebug from 'tunk-debug'
tunk.use([tunkDebug]);
````
## Config
#### debug:[true | false] default: false 
````javascript
// 全局配置debug，默认为 false
tunk.config({debug:true});

// 精确到模块配置是否debug
@create({debug: true})
class demo {
    constructor(){
        ....
    }
    // 精确到某个动作配置是否debug
    @action({debug:false})
    sayHi(){
        ...
    }

}

````

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