2 Commits

Author SHA1 Message Date
4cb7b82e0b 2.0.10 2018-04-12 19:12:07 +02:00
f282627b72 debugging is enabled 2018-04-12 19:12:03 +02:00
2 changed files with 13 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartdebug",
"version": "2.0.9",
"version": "2.0.10",
"description": "debug the smart way",
"main": "dist/index.js",
"typings": "dist/index.d.ts",

View File

@@ -21,6 +21,18 @@ debug the smart way
## Usage
Use TypeScript for best in class instellisense.
```typescript
import * as smartdebug from '@pushrocks/smartdebug';
smartdebug.log('a cool message') // won't log
smartdebug.enableDebugging();
smartdebug.log('another cool message') // this message will log
if(smartdebug.debugEnabled) {
console.log('Hi there!') // will also log since debugging is enabled
}
```
For further information read the linked docs at the top of this README.
> licensed | **©** [Lossless GmbH](https://lossless.gmbh)