Comparing version 0.0.16 to 0.1.0
@@ -85,2 +85,8 @@ const strftime = require('strftime'); | ||
log.inc = n => { | ||
if(!process.stdout.isTTY || !_text) return; | ||
_i = _i.map((v, i) => v + (i === n - 1)); | ||
lU.show(); | ||
}; | ||
log.stop = () => { | ||
@@ -87,0 +93,0 @@ if(!process.stdout.isTTY || !_text) return; |
{ | ||
"name": "cllc", | ||
"version": "0.0.16", | ||
"version": "0.1.0", | ||
"description": "Simple logger and counter fore console", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -119,2 +119,10 @@ # cllc | ||
Or another way: | ||
```js | ||
log.inc(1); // same as step(1); | ||
// //or// | ||
// log.inc(3); // same as step(0, 0, 1) | ||
``` | ||
#### Stop counter | ||
@@ -121,0 +129,0 @@ |
9737
89
172