{"_id":"single-line-log","_rev":"141210","name":"single-line-log","description":"Keep writing to the same line in the terminal. Very useful when you write progress bars, or a status message during longer operations","dist-tags":{"latest":"1.1.2"},"maintainers":[{"name":"freeall","email":"freeall@gmail.com"},{"name":"mafintosh","email":""}],"time":{"modified":"2021-06-03T11:27:02.000Z","created":"2013-09-11T19:24:26.742Z","1.1.2":"2016-09-09T05:36:30.030Z","1.1.1":"2016-02-28T19:12:21.847Z","1.1.0":"2016-02-27T05:34:28.253Z","1.0.1":"2015-11-04T08:04:22.406Z","1.0.0":"2015-05-24T20:20:20.166Z","0.4.1":"2014-05-31T09:52:55.216Z","0.4.0":"2014-05-10T14:04:06.021Z","0.3.1":"2013-12-26T00:48:17.317Z","0.3.0":"2013-12-25T09:46:45.728Z","0.2.0":"2013-12-11T14:18:03.603Z","0.1.2":"2013-11-13T16:06:23.921Z","0.1.1":"2013-11-13T15:20:42.256Z","0.1.0":"2013-09-11T19:24:26.742Z"},"users":{"colingourlay":true,"dantman":true,"lukekarrys":true,"maxogden":true,"dthompson":true,"erickeno":true,"mihaur":true,"theodor.lindekaer":true,"moimikey":true,"recursion_excursion":true,"scottfreecode":true,"aaamitsingh":true,"hoanganh25991":true,"liunian":true},"author":{"name":"Tobias Baunbæk","email":"freeall@gmail.com"},"repository":{"type":"git","url":"git://github.com/freeall/single-line-log.git"},"versions":{"1.1.2":{"name":"single-line-log","description":"Keep writing to the same line in the terminal. Very useful when you write progress bars, or a status message during longer operations","keywords":["single","line","log","output","overwrite","collapse","stdout","terminal","tty","cli","shell"],"version":"1.1.2","repository":{"type":"git","url":"git://github.com/freeall/single-line-log.git"},"license":"MIT","author":{"name":"Tobias Baunbæk","email":"freeall@gmail.com"},"dependencies":{"string-width":"^1.0.1"},"scripts":{"test":"node test.js"},"gitHead":"515b3b99b699396c2ad5f937e4b490b6f9fbff0e","bugs":{"url":"https://github.com/freeall/single-line-log/issues"},"homepage":"https://github.com/freeall/single-line-log#readme","_id":"single-line-log@1.1.2","_shasum":"c2f83f273a3e1a16edb0995661da0ed5ef033364","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"freeall","email":"freeall@gmail.com"},"dist":{"shasum":"c2f83f273a3e1a16edb0995661da0ed5ef033364","size":2314,"noattachment":false,"key":"/single-line-log/-/single-line-log-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/single-line-log/download/single-line-log-1.1.2.tgz"},"maintainers":[{"name":"freeall","email":"freeall@gmail.com"},{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/single-line-log-1.1.2.tgz_1473399388288_0.17821224196814"},"directories":{},"publish_time":1473399390030,"_cnpm_publish_time":1473399390030,"_hasShrinkwrap":false},"1.1.1":{"name":"single-line-log","description":"Keep writing to the same line in the terminal. Very useful when you write progress bars, or a status message during longer operations","keywords":["single","line","log","output","overwrite","collapse","stdout","terminal","tty","cli","shell"],"version":"1.1.1","repository":{"type":"git","url":"git://github.com/freeall/single-line-log.git"},"license":"MIT","author":{"name":"Tobias Baunbæk","email":"freeall@gmail.com"},"dependencies":{"string-width":"^1.0.1"},"scripts":{"test":"node test.js"},"gitHead":"db2d6e4b2a1b167b5998d32f1f4ce684a3557cb1","bugs":{"url":"https://github.com/freeall/single-line-log/issues"},"homepage":"https://github.com/freeall/single-line-log","_id":"single-line-log@1.1.1","_shasum":"f87743dfdb5519b5fe1dda36edd68f35e3cb5de6","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"f87743dfdb5519b5fe1dda36edd68f35e3cb5de6","size":1622,"noattachment":false,"key":"/single-line-log/-/single-line-log-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/single-line-log/download/single-line-log-1.1.1.tgz"},"maintainers":[{"name":"freeall","email":"freeall@gmail.com"},{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/single-line-log-1.1.1.tgz_1456686739188_0.03980169352144003"},"directories":{},"publish_time":1456686741847,"_cnpm_publish_time":1456686741847,"_hasShrinkwrap":false},"1.1.0":{"name":"single-line-log","description":"Keep writing to the same line in the terminal. Very useful when you write progress bars, or a status message during longer operations","keywords":["single","line","log","output","overwrite","collapse","stdout","terminal","tty","cli","shell"],"version":"1.1.0","repository":{"type":"git","url":"git://github.com/freeall/single-line-log.git"},"license":"MIT","author":{"name":"Tobias Baunbæk","email":"freeall@gmail.com"},"dependencies":{"string-width":"^1.0.1"},"scripts":{"test":"node test.js"},"gitHead":"3da0007a2140941604641104a8c33fdfd8146b50","bugs":{"url":"https://github.com/freeall/single-line-log/issues"},"homepage":"https://github.com/freeall/single-line-log#readme","_id":"single-line-log@1.1.0","_shasum":"751ed8c336e277e7d19a842433e316c54107747c","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.4.1","_npmUser":{"name":"freeall","email":"freeall@gmail.com"},"dist":{"shasum":"751ed8c336e277e7d19a842433e316c54107747c","size":1637,"noattachment":false,"key":"/single-line-log/-/single-line-log-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/single-line-log/download/single-line-log-1.1.0.tgz"},"maintainers":[{"name":"freeall","email":"freeall@gmail.com"},{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/single-line-log-1.1.0.tgz_1456551266908_0.3524855598807335"},"directories":{},"publish_time":1456551268253,"_cnpm_publish_time":1456551268253,"_hasShrinkwrap":false},"1.0.1":{"name":"single-line-log","description":"Keep writing to the same line in the terminal. Very useful when you write progress bars, or a status message during longer operations","keywords":["single","line","log","output","overwrite","collapse","stdout","terminal","tty","cli","shell"],"version":"1.0.1","repository":{"type":"git","url":"git://github.com/freeall/single-line-log.git"},"license":"MIT","author":{"name":"Tobias Baunbæk","email":"freeall@gmail.com"},"gitHead":"7d66614763f9c99e60dc311c128f182eb66ebbac","bugs":{"url":"https://github.com/freeall/single-line-log/issues"},"homepage":"https://github.com/freeall/single-line-log#readme","_id":"single-line-log@1.0.1","scripts":{},"_shasum":"841b90b671fa3c936c0ac2bc963f94010b60d2a0","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"freeall","email":"freeall@gmail.com"},"dist":{"shasum":"841b90b671fa3c936c0ac2bc963f94010b60d2a0","size":1432,"noattachment":false,"key":"/single-line-log/-/single-line-log-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/single-line-log/download/single-line-log-1.0.1.tgz"},"maintainers":[{"name":"freeall","email":"freeall@gmail.com"},{"name":"mafintosh","email":""}],"directories":{},"publish_time":1446624262406,"_cnpm_publish_time":1446624262406,"_hasShrinkwrap":false},"1.0.0":{"name":"single-line-log","description":"Keep writing to the same line in the terminal. Very useful when you write progress bars, or a status message during longer operations","keywords":["single","line","log","output","overwrite","collapse","stdout","terminal","tty","cli","shell"],"version":"1.0.0","repository":{"type":"git","url":"git://github.com/freeall/single-line-log.git"},"license":"MIT","author":{"name":"Tobias Baunbæk","email":"freeall@gmail.com"},"gitHead":"08dbac00193f25d9fc7c546c65830e38c81f358a","bugs":{"url":"https://github.com/freeall/single-line-log/issues"},"homepage":"https://github.com/freeall/single-line-log#readme","_id":"single-line-log@1.0.0","scripts":{},"_shasum":"0750e264e4205972112a1554e8e75933aeeb175a","_from":".","_npmVersion":"2.8.3","_nodeVersion":"1.8.1","_npmUser":{"name":"freeall","email":"freeall@gmail.com"},"maintainers":[{"name":"freeall","email":"freeall@gmail.com"},{"name":"mafintosh","email":""}],"dist":{"shasum":"0750e264e4205972112a1554e8e75933aeeb175a","size":1411,"noattachment":false,"key":"/single-line-log/-/single-line-log-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/single-line-log/download/single-line-log-1.0.0.tgz"},"directories":{},"publish_time":1432498820166,"_cnpm_publish_time":1432498820166,"_hasShrinkwrap":false},"0.4.1":{"name":"single-line-log","description":"Keep writing to the same line in the terminal. Very useful when you write progress bars, or a status message during longer operations","keywords":["single","line","log","output","overwrite","collapse","stdout","terminal","tty","cli","shell"],"version":"0.4.1","repository":{"type":"git","url":"git://github.com/freeall/single-line-log.git"},"author":{"name":"Tobias Baunbæk","email":"freeall@gmail.com"},"bugs":{"url":"https://github.com/freeall/single-line-log/issues"},"homepage":"https://github.com/freeall/single-line-log","_id":"single-line-log@0.4.1","_shasum":"87a55649f749d783ec0dcd804e8140d9873c7cee","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"freeall","email":"freeall@gmail.com"},"maintainers":[{"name":"freeall","email":"freeall@gmail.com"},{"name":"mafintosh","email":""}],"dist":{"shasum":"87a55649f749d783ec0dcd804e8140d9873c7cee","size":1396,"noattachment":false,"key":"/single-line-log/-/single-line-log-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/single-line-log/download/single-line-log-0.4.1.tgz"},"directories":{},"publish_time":1401529975216,"_cnpm_publish_time":1401529975216,"_hasShrinkwrap":false},"0.4.0":{"name":"single-line-log","description":"Keep writing to the same line in the terminal. Very useful when you write progress bars, or a status message during longer operations","keywords":["single","line","log","output","overwrite","collapse","stdout","terminal","tty","cli","shell"],"version":"0.4.0","repository":{"type":"git","url":"git://github.com/freeall/single-line-log.git"},"author":{"name":"Tobias Baunbæk","email":"freeall@gmail.com"},"bugs":{"url":"https://github.com/freeall/single-line-log/issues"},"homepage":"https://github.com/freeall/single-line-log","_id":"single-line-log@0.4.0","_shasum":"deae6de7784fb76a05dd62ac01f8f9db8909e7da","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"freeall","email":"freeall@gmail.com"},"maintainers":[{"name":"freeall","email":"freeall@gmail.com"},{"name":"mafintosh","email":""}],"dist":{"shasum":"deae6de7784fb76a05dd62ac01f8f9db8909e7da","size":1390,"noattachment":false,"key":"/single-line-log/-/single-line-log-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/single-line-log/download/single-line-log-0.4.0.tgz"},"directories":{},"publish_time":1399730646021,"_cnpm_publish_time":1399730646021,"_hasShrinkwrap":false},"0.3.1":{"name":"single-line-log","description":"Keep writing to the same line in the terminal. Very useful when you write progress bars, or a status message during longer operations","keywords":["single","line","log","output","overwrite","collapse","stdout","terminal","tty","cli","shell"],"version":"0.3.1","repository":{"type":"git","url":"git://github.com/freeall/single-line-log.git"},"author":{"name":"Tobias Baunbæk","email":"freeall@gmail.com"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/freeall/single-line-log/issues"},"homepage":"https://github.com/freeall/single-line-log","_id":"single-line-log@0.3.1","dist":{"shasum":"a7ad6507f218ce5dfe16c4bf2d659246419e7a06","size":1317,"noattachment":false,"key":"/single-line-log/-/single-line-log-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/single-line-log/download/single-line-log-0.3.1.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"freeall","email":"freeall@gmail.com"},"maintainers":[{"name":"freeall","email":"freeall@gmail.com"},{"name":"mafintosh","email":""}],"directories":{},"publish_time":1388018897317,"_cnpm_publish_time":1388018897317,"_hasShrinkwrap":false},"0.3.0":{"name":"single-line-log","description":"Keep writing to the same line in the terminal. Very useful when you write progress bars, or a status message during longer operations","keywords":["single","line","log","output","overwrite","collapse","stdout","terminal","tty","cli","shell"],"version":"0.3.0","repository":{"type":"git","url":"git://github.com/freeall/single-line-log.git"},"author":{"name":"Tobias Baunbæk","email":"freeall@gmail.com"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/freeall/single-line-log/issues"},"homepage":"https://github.com/freeall/single-line-log","_id":"single-line-log@0.3.0","dist":{"shasum":"681468b3bb01344178dba4179d0b65a38020eb97","size":1173,"noattachment":false,"key":"/single-line-log/-/single-line-log-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/single-line-log/download/single-line-log-0.3.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"freeall","email":"freeall@gmail.com"},"maintainers":[{"name":"freeall","email":"freeall@gmail.com"},{"name":"mafintosh","email":""}],"directories":{},"publish_time":1387964805728,"_cnpm_publish_time":1387964805728,"_hasShrinkwrap":false},"0.2.0":{"name":"single-line-log","description":"Keep writing to the same line in the terminal. Very useful when you write progress bars, or a status message during longer operations","keywords":["single","line","log","output","overwrite","collapse","stdout","terminal","tty","cli","shell"],"version":"0.2.0","repository":{"type":"git","url":"git://github.com/freeall/single-line-log.git"},"author":{"name":"Tobias Baunbæk","email":"freeall@gmail.com"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/freeall/single-line-log/issues"},"homepage":"https://github.com/freeall/single-line-log","_id":"single-line-log@0.2.0","dist":{"shasum":"e9a84585d5e00d0b64aaf2864ba0732c946c7ff4","size":1114,"noattachment":false,"key":"/single-line-log/-/single-line-log-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/single-line-log/download/single-line-log-0.2.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"freeall","email":"freeall@gmail.com"},"maintainers":[{"name":"freeall","email":"freeall@gmail.com"},{"name":"mafintosh","email":""}],"directories":{},"publish_time":1386771483603,"_cnpm_publish_time":1386771483603,"_hasShrinkwrap":false},"0.1.2":{"name":"single-line-log","description":"Keep writing to the same line in the terminal. Very useful when you write progress bars, or a status message during longer operations","keywords":["single","line","log","output","overwrite","collapse","stdout","terminal","tty","cli","shell"],"version":"0.1.2","repository":{"type":"git","url":"git://github.com/freeall/single-line-log.git"},"author":{"name":"Tobias Baunbæk","email":"freeall@gmail.com"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/freeall/single-line-log/issues"},"homepage":"https://github.com/freeall/single-line-log","_id":"single-line-log@0.1.2","dist":{"shasum":"306c4782b733461655ea3622655bab7ee401b97f","size":1055,"noattachment":false,"key":"/single-line-log/-/single-line-log-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/single-line-log/download/single-line-log-0.1.2.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"freeall","email":"freeall@gmail.com"},"maintainers":[{"name":"freeall","email":"freeall@gmail.com"},{"name":"mafintosh","email":""}],"directories":{},"publish_time":1384358783921,"_cnpm_publish_time":1384358783921,"_hasShrinkwrap":false},"0.1.1":{"name":"single-line-log","description":"Keep writing to the same line in the terminal. Very useful when you write progress bars, or a status message during longer operations","keywords":["single","line","log","output","overwrite","collapse","stdout","terminal","tty","cli","shell"],"version":"0.1.1","repository":{"type":"git","url":"git://github.com/freeall/single-line-log.git"},"author":{"name":"Tobias Baunbæk","email":"freeall@gmail.com"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/freeall/single-line-log/issues"},"homepage":"https://github.com/freeall/single-line-log","_id":"single-line-log@0.1.1","dist":{"shasum":"46dcd5b3445e4bf9bdbb5ee54c3ed7d41647b0de","size":1040,"noattachment":false,"key":"/single-line-log/-/single-line-log-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/single-line-log/download/single-line-log-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"freeall","email":"freeall@gmail.com"},"maintainers":[{"name":"freeall","email":"freeall@gmail.com"},{"name":"mafintosh","email":""}],"directories":{},"publish_time":1384356042256,"_cnpm_publish_time":1384356042256,"_hasShrinkwrap":false},"0.1.0":{"name":"single-line-log","description":"Keep writing to the same line in the terminal. Very useful when you write progress bars, or a status message during longer operations","keywords":["single","line","log","output","overwrite","collapse","stdout","terminal","tty","cli","shell"],"version":"0.1.0","repository":{"type":"git","url":"git://github.com/freeall/single-line-log.git"},"author":{"name":"Tobias Baunbæk","email":"freeall@gmail.com"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/freeall/single-line-log/issues"},"_id":"single-line-log@0.1.0","dist":{"shasum":"c5eac87558246a1bf53ac61e04b535410beff00a","size":925,"noattachment":false,"key":"/single-line-log/-/single-line-log-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/single-line-log/download/single-line-log-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"freeall","email":"freeall@gmail.com"},"maintainers":[{"name":"freeall","email":"freeall@gmail.com"},{"name":"mafintosh","email":""}],"directories":{},"publish_time":1378927466742,"_cnpm_publish_time":1378927466742,"_hasShrinkwrap":false}},"readme":"# single-line-log\n\nNode.js module that keeps writing to the same line in the console (or a stream). Very useful when you write progress bars, or a status message during longer operations. Supports multilines.\n\n\n## Installation\n\n\tnpm install single-line-log\n\n\n## Usage\n\n``` js\nvar log = require('single-line-log').stdout;\n// or pass any stream:\n// var log = require('single-line-log')(process.stdout);\n\nvar read = 0;\nvar size = fs.statSync('super-large-file').size;\n\nvar rs = fs.createReadStream('super-large-file');\nrs.on('data', function(data) {\n\tread += data.length;\n\tvar percentage = Math.floor(100*read/size);\n\n\t// Keep writing to the same two lines in the console\n\tlog('Writing to super large file\\n[' + percentage + '%]', read, 'bytes read');\n});\n```\n\n## .clear()\n\nClears the log (i.e., writes a newline).\n\n``` js\nvar log = require('single-line-log').stdout;\n\nlog('Line 1');\nlog.clear();\nlog('Line 2');\n```\n\n\n## .stdout\n\nOutputs to `process.stdout`.\n\n\n## .stderr\n\nOutputs to `process.stderr`.\n\n\n## License\n\nMIT","_attachments":{},"homepage":"https://github.com/freeall/single-line-log#readme","bugs":{"url":"https://github.com/freeall/single-line-log/issues"},"license":"MIT"}