single-line-log
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -26,2 +26,5 @@ var MOVE = new Buffer('1b5b3130303044', 'hex').toString(); | ||
module.exports = log; | ||
module.exports.clear = function() { | ||
process.stdout.write(''); | ||
}; | ||
@@ -28,0 +31,0 @@ if (require.main !== module) return; |
@@ -17,5 +17,5 @@ { | ||
], | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"repository": "git://github.com/freeall/single-line-log.git", | ||
"author": "Tobias Baunbæk <freeall@gmail.com>" | ||
} |
@@ -29,4 +29,16 @@ # single-line-log | ||
## .clear() | ||
Clears the log (i.e., writes a newline). | ||
``` js | ||
var log = require('single-line-log'); | ||
log('Line 1'); | ||
log.clear() | ||
log('Line 2'); | ||
``` | ||
## License | ||
MIT |
1997
28
43