Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4cb7b82e0b | |||
| f282627b72 | |||
| 5424f20383 | |||
| 78956f8a5a |
@@ -2,6 +2,7 @@
|
|||||||
"npmci": {
|
"npmci": {
|
||||||
"npmGlobalTools": [
|
"npmGlobalTools": [
|
||||||
"npmts"
|
"npmts"
|
||||||
]
|
],
|
||||||
|
"npmAccessLevel": "public"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartdebug",
|
"name": "@pushrocks/smartdebug",
|
||||||
"version": "2.0.8",
|
"version": "2.0.10",
|
||||||
"description": "debug the smart way",
|
"description": "debug the smart way",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
|
|||||||
12
readme.md
12
readme.md
@@ -21,6 +21,18 @@ debug the smart way
|
|||||||
## Usage
|
## Usage
|
||||||
Use TypeScript for best in class instellisense.
|
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.
|
For further information read the linked docs at the top of this README.
|
||||||
|
|
||||||
> licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
> licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||||
|
|||||||
Reference in New Issue
Block a user