smartdebug/README.md

22 lines
858 B
Markdown
Raw Normal View History

2015-11-17 01:29:18 +00:00
# smartdebug
2015-11-17 01:39:39 +00:00
debug your JavaScript the smart way
2015-11-15 19:35:13 +00:00
### Buildstatus/Dependencies
2015-11-17 01:29:18 +00:00
[![Build Status](https://travis-ci.org/pushrocks/smartdebug.svg?branch=master)](https://travis-ci.org/pushrocks/smartdebug)
2015-11-17 01:39:39 +00:00
[![Dependency Status](https://david-dm.org/pushrocks/smartdebug.svg)](https://david-dm.org/pushrocks/smartdebug)
2015-11-17 01:29:18 +00:00
[![devDependency Status](https://david-dm.org/pushrocks/smartdebug/dev-status.svg)](https://david-dm.org/pushrocks/smartdebug#info=devDependencies)
2015-11-15 19:35:13 +00:00
### Usage
2015-11-17 01:29:18 +00:00
This plugin is thought for easy debug logging.
2015-11-15 19:35:13 +00:00
2015-11-17 01:29:18 +00:00
```javascript
var smartDebug = require("smartdebug");
2015-11-15 19:35:13 +00:00
2015-11-17 01:29:18 +00:00
smartDebug.log("This message is not shown");
smartDebug.activate(true);
smartDebug.log("This debug message is shown");
2015-11-15 19:35:13 +00:00
```
2015-11-17 01:36:58 +00:00
The above code produces debug messages like this:
![debugmessage.png](https://mediaserve.lossless.digital/github.com/pushrocks/smartdebug/debugmessage.png)