{"_id":"ansi-escape","_rev":"6-b081b5f78f740980edce64bbbd48cdb6","name":"ansi-escape","description":"ANSI escape codes for manipulating the terminal","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"ansi-escape","version":"1.0.0","description":"ANSI escape codes for manipulating the terminal","main":"index.js","scripts":{"test":"eslint . && tape test/*.js"},"repository":{"type":"git","url":"git+https://github.com/zoubin/ansi-escape.git"},"keywords":["ansi","escape","terminal"],"author":{"name":"zoubin"},"license":"MIT","bugs":{"url":"https://github.com/zoubin/ansi-escape/issues"},"homepage":"https://github.com/zoubin/ansi-escape#readme","dependencies":{},"devDependencies":{"eslint":"^1.10.1","tape":"^4.2.0"},"gitHead":"23c9afb254d23fb3f09e70f3fa8aa39ce86c0b17","_id":"ansi-escape@1.0.0","_shasum":"9734993cd9058a6326b8a6218a93719776002a4b","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"zoubin","email":"zoubin04@gmail.com"},"dist":{"shasum":"9734993cd9058a6326b8a6218a93719776002a4b","tarball":"https://registry.npmjs.org/ansi-escape/-/ansi-escape-1.0.0.tgz","integrity":"sha512-fs2pmaZI02u5z+V4nYpn1+GmlSP8hYBAPBqb9dgLGClUVJq3cw24Fbk3AIzY1SCigzv2OPHEsb28TNMBRzbIMA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGQ17L9Y2KZsa0kqavFlgR6wFxQbOvt6D1Ri+zUC/G/MAiEAuT4pfkVcH4P6Eo/CoM1e4t0zLHciaGGvYxWw6xNPKik="}]},"maintainers":[{"name":"zoubin","email":"zoubin04@gmail.com"}]},"1.0.1":{"name":"ansi-escape","version":"1.0.1","description":"ANSI escape codes for manipulating the terminal","main":"index.js","scripts":{"test":"eslint . && tape test/*.js"},"repository":{"type":"git","url":"git+https://github.com/zoubin/ansi-escape.git"},"keywords":["ansi","escape","terminal"],"author":{"name":"zoubin"},"license":"MIT","bugs":{"url":"https://github.com/zoubin/ansi-escape/issues"},"homepage":"https://github.com/zoubin/ansi-escape#readme","dependencies":{},"devDependencies":{"eslint":"^1.10.1","tape":"^4.2.0"},"gitHead":"597303950ee10a91bc47f98da279eaf41cdaa313","_id":"ansi-escape@1.0.1","_shasum":"20b72ebd5e0aecbf273b576ec3183badc8375a61","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"zoubin","email":"zoubin04@gmail.com"},"dist":{"shasum":"20b72ebd5e0aecbf273b576ec3183badc8375a61","tarball":"https://registry.npmjs.org/ansi-escape/-/ansi-escape-1.0.1.tgz","integrity":"sha512-DTpSJa2t/NHEFyD5GZR5bjR7nrbGHQr1bEshQ/pwuiyI98BfXyzjOZGvNoFk3GTD1x4WeT15fCf/lZjL5IhbYg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH8LiNeqpcW9TLkySM8h9V4ApHS1uLnL5mW9zSeNw6NwAiBw+Uz4TxyPAiUUwK7BOm8Owu5x/weSvrTGMaw5B626pw=="}]},"maintainers":[{"name":"zoubin","email":"zoubin04@gmail.com"}]},"1.1.0":{"name":"ansi-escape","version":"1.1.0","description":"ANSI escape codes for manipulating the terminal","main":"index.js","scripts":{"test":"npm run lint && tap test/*.js","lint":"eslint *.js lib/*.js test/*.js bin/*.js","coveralls":"COVERALLS_REPO_TOKEN=REPO_TOKEN npm test"},"repository":{"type":"git","url":"git+https://github.com/zoubin/ansi-escape.git"},"keywords":["ansi","escape","terminal"],"author":{"name":"zoubin"},"license":"MIT","bugs":{"url":"https://github.com/zoubin/ansi-escape/issues"},"homepage":"https://github.com/zoubin/ansi-escape#readme","dependencies":{},"devDependencies":{"eslint":"^1.10.1","tap":"^5.0.0"},"gitHead":"abbf51591a4c6d1fc678d4c6705fa3d46a4c7a41","_id":"ansi-escape@1.1.0","_shasum":"8ad859e84a69e0ff91779694793a92e4e8c05e99","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"zoubin","email":"zoubin04@gmail.com"},"dist":{"shasum":"8ad859e84a69e0ff91779694793a92e4e8c05e99","tarball":"https://registry.npmjs.org/ansi-escape/-/ansi-escape-1.1.0.tgz","integrity":"sha512-zSh7blKiz2ZUqDuEz4a3L59OheDkTuhG2Q1D875rpAJ4lt7AxMhyEXN20+6lpHXq4ul3rMcDzC2Hv6g33m58oQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoGbACyA6Tn1qtmqbhvycV8f/HYAqOnB8PEo40m6t4WQIgHQDvNeUm9YYmReC5fh56En/jqo1bAwkuZBjJU/BQMVs="}]},"maintainers":[{"name":"zoubin","email":"zoubin04@gmail.com"}]}},"readme":"# ansi-escape\nANSI escape codes for manipulating the terminal\n\n[![version](https://img.shields.io/npm/v/ansi-escape.svg)](https://www.npmjs.org/package/ansi-escape)\n[![status](https://travis-ci.org/zoubin/ansi-escape.svg?branch=master)](https://travis-ci.org/zoubin/ansi-escape)\n\n## Usage\n\n```javascript\nvar csi = require('ansi-escape')\n\nconsole.log('1'.repeat(8))\nconsole.log(\n  csi\n    // underline text\n    .underline\n\n    // red text\n    .red\n\n    // move cursor one line up\n    .cursorUp\n\n    // move cursor 2 cells forward\n    .cursorForward(2)\n\n    // the text to be escaped\n    .escape('2'.repeat(4))\n)\n\n```\n\n**Output**\n\n![chain](example/chain.png)\n\n## escape\nType: `Function`\n\nAccept arguments like [util.format](https://nodejs.org/docs/latest/api/util.html#util_util_format_format).\n\n```js\nvar csi = require('ansi-escape')\n\nconsole.log(\n  csi.escape(\n    'Age: %d, Size: %j',\n    10,\n    { h: 180, w: 80 }\n  )\n)\n\n\n```\n\n**Output**\n\n```\nAge: 10, Size: {\"h\":180,\"w\":80}\n\n```\n\n\n## Cursors\n\n### cursorUp(n = 1)\n\nAlias: `cuu`, `up`\n\nMoves the cursor `n` cells up.\n\n### cursorDown(n = 1)\n\nAlias: `cud`, `down`\n\nMoves the cursor `n` cells down.\n\n### cursorForward(n = 1)\n\nAlias: `cuf`, `forward`\n\nMoves the cursor `n` cells forward.\n\n### cursorBackward(n = 1)\n\nAlias: `cub`, `back`\n\nMoves the cursor `n` cells backward.\n\n\n### cursorColumn(n = 1)\n\nAlias: `cha`, `col`\n\nMoves the cursor to column `n`.\n\n### cursorPosition(n = 1, m = 1)\n\nAlias: `cup`\n\nMoves the cursor to row `n`, column `m`.\n\n### eraseDisplay(n = 0)\n\nSugar: `eraseDisplayEnd`, `eraseDisplayStart`, `eraseDisplayEntire`\n\nClears part of the screen.\n\n* If `n` is 0 (or missing), clear from cursor to end of screen.\n* If `n` is 1, clear from cursor to beginning of the screen.\n* If `n` is 2, clear entire screen (and moves cursor to upper left on DOS ANSI.SYS).\n\n### eraseLine(n = 0)\n\nSugar: `eraseLineEnd`, `eraseLineStart`, `eraseLineEntire`\n\nErases part of the line.\n\n* If `n` is 0 (or missing), clear from cursor to the end of the line.\n* If `n` is 1, clear from cursor to beginning of the line.\n* If `n` is 2, clear entire line.\n\nCursor position does not change.\n\n### scrollUp(n = 1)\n\nAlias: `su`\n\nScroll whole page up by n (default 1) lines.\nNew lines are added at the bottom. \n\n### scrollDown(n = 1)\n\nAlias: `sd`\n\nScroll whole page down by n (default 1) lines.\nNew lines are added at the top.\n\n### saveCursorPosition\n\nAlias: `scp`, `saveCursor`\n\nSaves the cursor position.\n\n### restoreCursorPosition\n\nAlias: `rcp`, `restoreCursor`\n\nRestores the cursor position.\n\n### hideCursor\n\nAlias: `hide`\n\nHides the cursor.\n\n### showCursor\n\nAlias: `show`\n\nShows the cursor.\n\n## Styles\n\n### Modifiers\n\n* bold\n* dim\n* italic\n* underline\n* blink\n* inverse\n* hidden\n* strikethrough\n\n### Colors\n\n* black\n* red\n* green\n* yellow\n* blue\n* magenta\n* cyan\n* white\n\n### Background colors\n\n* bgBlack\n* bgRed\n* bgGreen\n* bgYellow\n* bgBlue\n* bgMagenta\n* bgCyan\n* bgWhite\n\n","maintainers":[{"name":"zoubin","email":"zoubin04@gmail.com"}],"time":{"modified":"2022-06-13T03:05:20.051Z","created":"2015-11-23T17:57:20.673Z","1.0.0":"2015-11-23T17:57:20.673Z","1.0.1":"2015-11-23T18:10:09.457Z","1.1.0":"2016-01-07T09:35:22.146Z"},"homepage":"https://github.com/zoubin/ansi-escape#readme","keywords":["ansi","escape","terminal"],"repository":{"type":"git","url":"git+https://github.com/zoubin/ansi-escape.git"},"author":{"name":"zoubin"},"bugs":{"url":"https://github.com/zoubin/ansi-escape/issues"},"license":"MIT","readmeFilename":"README.md","users":{"naterkane":true}}