{"_id":"terminal-overwrite","_rev":"3-7cad74474b5743b5b6e1e6989c0ec355","name":"terminal-overwrite","description":"Log by overwriting the previous output in the terminal. Useful for rendering progress bars, animations, etc.","dist-tags":{"latest":"2.0.1"},"versions":{"2.0.0":{"name":"terminal-overwrite","version":"2.0.0","description":"Log by overwriting the previous output in the terminal. Useful for rendering progress bars, animations, etc.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/mr5/terminal-overwrite.git"},"author":{"name":"Dyson Woo","email":"mr5.simple@gmail.com","url":"github.com/mr5"},"engines":{"node":">=4"},"scripts":{"test":"xo && node test.js"},"files":["index.js"],"keywords":["log","logger","logging","cli","terminal","term","console","shell","update","refresh","overwrite","output","stdout","progress","bar","animation"],"dependencies":{"cli-cursor":"^2.0.0","string-width":"^2.0.0","wrap-ansi":"^2.1.0"},"devDependencies":{"xo":"*"},"contributors":[{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"gitHead":"a5563adecf412a182dbfc6ca2c917cd2b38444dd","bugs":{"url":"https://github.com/mr5/terminal-overwrite/issues"},"homepage":"https://github.com/mr5/terminal-overwrite#readme","_id":"terminal-overwrite@2.0.0","_shasum":"f2557380f6d5698677239044d68815caa89d6fd3","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.0","_npmUser":{"name":"mr5","email":"mr5.simple@gmail.com"},"dist":{"shasum":"f2557380f6d5698677239044d68815caa89d6fd3","tarball":"https://registry.npmjs.org/terminal-overwrite/-/terminal-overwrite-2.0.0.tgz","integrity":"sha512-6U0nkWhh85kmDwY9vzlgCfBxQHrxd+BloT+s6ChU+F12iIyZ0M3ZKiOeHLeEi+MpXvEKWhud9Iov17gmfldMPg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEHYC7Be01kKwZVVEH+NXCf8VaPzkUHyyWaYdShyLkFSAiBnU7vp+ytW+8eU1nQgNy6KhQW775icS66/k7h61LLSzg=="}]},"maintainers":[{"name":"mr5","email":"mr5.simple@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/terminal-overwrite-2.0.0.tgz_1497951194873_0.20541459042578936"}},"2.0.1":{"name":"terminal-overwrite","version":"2.0.1","description":"Log by overwriting the previous output in the terminal. Useful for rendering progress bars, animations, etc.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/mr5/terminal-overwrite.git"},"author":{"name":"Dyson Woo","email":"mr5.simple@gmail.com","url":"github.com/mr5"},"engines":{"node":">=4"},"scripts":{"test":"xo && node test.js"},"files":["index.js"],"keywords":["log","logger","logging","cli","terminal","term","console","shell","update","refresh","overwrite","output","stdout","progress","bar","animation"],"dependencies":{"cli-cursor":"^2.0.0","string-width":"^2.0.0"},"devDependencies":{"xo":"*"},"contributors":[{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"gitHead":"ea972f071ad3d8ef1dc9f00b00d9e8ffd815cd51","bugs":{"url":"https://github.com/mr5/terminal-overwrite/issues"},"homepage":"https://github.com/mr5/terminal-overwrite#readme","_id":"terminal-overwrite@2.0.1","_shasum":"c732aefeba38900667bf088b4f1b12edbee62841","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.0","_npmUser":{"name":"mr5","email":"mr5.simple@gmail.com"},"dist":{"shasum":"c732aefeba38900667bf088b4f1b12edbee62841","tarball":"https://registry.npmjs.org/terminal-overwrite/-/terminal-overwrite-2.0.1.tgz","integrity":"sha512-CP8KtcHQjSlKtaXIZTJt4I4II8oEdXyGJtx54gXVVys9plYIaK4ahiXPD6XxZ2efrqayH1B7uR/5Wr7N2cTgFA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDCSmo4fTZ49slB9fqQ51jD+riHFrNLUbt81AEC99JUeAiEApfkAr2SSGAWx/aKF3q9vIlsHVWovRswFA0b0BZxwPEw="}]},"maintainers":[{"name":"mr5","email":"mr5.simple@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/terminal-overwrite-2.0.1.tgz_1498030562798_0.3773190404754132"}}},"readme":"# terminal-overwrite\n \n [![Build Status](https://travis-ci.org/mr5/terminal-overwrite.svg?branch=master)](https://travis-ci.org/sindresorhus/log-update)\n\n> Log by overwriting the previous output in the terminal.<br>\n> Useful for rendering progress bars, animations, etc.<br>\n> Forked from [log-update](https://github.com/sindresorhus/log-update)\n\n![](screenshot.gif)\n\n## Install\n\n```\n$ npm install --save terminal-overwrite\n```\n\n\n## Usage\n\n```js\nconst terminalOverwrite = require('terminal-overwrite');\nconst frames = ['-', '\\\\', '|', '/'];\nlet i = 0;\n\nsetInterval(() => {\n\tconst frame = frames[i = ++i % frames.length];\n\n\tterminalOverwrite(\n`\n        ♥♥\n   ${frame} unicorns ${frame}\n        ♥♥\n`\n\t);\n}, 80);\n```\n\n\n## API\n\n### terminalOverwrite(text, ...)\n\nLog to stdout.\n\n### terminalOverwrite.clear()\n\nClear the logged output.\n\n### terminalOverwrite.done()\n\nPersist the logged output.<br>\nUseful if you want to start a new log session below the current one.\n\n### terminalOverwrite.stderr(text, ...)\n\nLog to stderr.\n\n### terminalOverwrite.stderr.clear()\n### terminalOverwrite.stderr.done()\n\n### terminalOverwrite.create(stream)\n\nGet a `terminalOverwrite` method that logs to the specified stream.\n\n## License\n\n* MIT © [Dyson Woo](https://github.com/mr5)\n* MIT © [Sindre Sorhus](https://sindresorhus.com)\n","maintainers":[{"name":"mr5","email":"mr5.simple@gmail.com"}],"time":{"modified":"2022-06-27T04:50:44.495Z","created":"2017-06-20T09:33:15.011Z","2.0.0":"2017-06-20T09:33:15.011Z","2.0.1":"2017-06-21T07:36:02.887Z"},"homepage":"https://github.com/mr5/terminal-overwrite#readme","keywords":["log","logger","logging","cli","terminal","term","console","shell","update","refresh","overwrite","output","stdout","progress","bar","animation"],"repository":{"type":"git","url":"git+https://github.com/mr5/terminal-overwrite.git"},"contributors":[{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"author":{"name":"Dyson Woo","email":"mr5.simple@gmail.com","url":"github.com/mr5"},"bugs":{"url":"https://github.com/mr5/terminal-overwrite/issues"},"license":"MIT","readmeFilename":"readme.md"}