2018-04-12 18:02:48 +02:00
|
|
|
# smartdebug
|
2018-04-12 19:29:24 +02:00
|
|
|
|
2018-04-12 18:02:48 +02:00
|
|
|
debug the smart way
|
|
|
|
|
|
|
|
## Availabililty
|
2018-04-12 19:29:24 +02:00
|
|
|
|
2018-04-12 18:02:48 +02:00
|
|
|
[](https://www.npmjs.com/package/@pushrocks/smartdebug)
|
|
|
|
[](https://GitLab.com/pushrocks/smartdebug)
|
|
|
|
[](https://github.com/pushrocks/smartdebug)
|
|
|
|
[](https://pushrocks.gitlab.io/smartdebug/)
|
|
|
|
|
|
|
|
## Status for master
|
2018-04-12 19:29:24 +02:00
|
|
|
|
2018-04-12 18:02:48 +02:00
|
|
|
[](https://GitLab.com/pushrocks/smartdebug/commits/master)
|
|
|
|
[](https://GitLab.com/pushrocks/smartdebug/commits/master)
|
|
|
|
[](https://www.npmjs.com/package/@pushrocks/smartdebug)
|
|
|
|
[](https://www.bithound.io/github/pushrocks/smartdebug/master/dependencies/npm)
|
|
|
|
[](https://www.bithound.io/github/pushrocks/smartdebug)
|
|
|
|
[](https://snyk.io/test/npm/@pushrocks/smartdebug)
|
|
|
|
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
|
|
|
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
|
|
|
[](http://standardjs.com/)
|
|
|
|
|
|
|
|
## Usage
|
2018-04-12 19:29:24 +02:00
|
|
|
|
2018-04-12 18:02:48 +02:00
|
|
|
Use TypeScript for best in class instellisense.
|
|
|
|
|
2018-04-12 19:12:03 +02:00
|
|
|
```typescript
|
|
|
|
import * as smartdebug from '@pushrocks/smartdebug';
|
|
|
|
|
2018-04-12 19:29:24 +02:00
|
|
|
smartdebug.log('a cool message'); // won't log
|
2018-04-12 19:12:03 +02:00
|
|
|
smartdebug.enableDebugging();
|
2018-04-12 19:29:24 +02:00
|
|
|
smartdebug.log('another cool message'); // this message will log
|
2018-04-12 19:12:03 +02:00
|
|
|
|
2018-04-12 19:29:24 +02:00
|
|
|
if (smartdebug.debugEnabled) {
|
|
|
|
console.log('Hi there!'); // will also log since debugging is enabled
|
2018-04-12 19:12:03 +02:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2018-04-12 18:02:48 +02:00
|
|
|
For further information read the linked docs at the top of this README.
|
|
|
|
|
2018-04-12 19:29:24 +02:00
|
|
|
> licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
|
|
|
> | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
|
2018-04-12 18:02:48 +02:00
|
|
|
|
|
|
|
[](https://push.rocks)
|