{"name":"sisteransi","version":"1.0.0","description":"ANSI escape codes for some terminal swag","main":"src/index.js","license":"MIT","author":{"name":"Terkel Gjervig","email":"terkel@terkel.com","url":"https://terkel.com"},"scripts":{"test":"tape test/*.js | tap-spec"},"repository":{"type":"git","url":"git+https://github.com/terkelg/sisteransi.git"},"files":["src"],"keywords":["ansi","escape codes","escape","terminal","style"],"devDependencies":{"tap-spec":"^5.0.0","tape":"^4.9.0"},"gitHead":"0eb456ac9c076faa2e45dd2a85ea36f94f9f0c06","bugs":{"url":"https://github.com/terkelg/sisteransi/issues"},"homepage":"https://github.com/terkelg/sisteransi#readme","_id":"sisteransi@1.0.0","_npmVersion":"6.4.0","_nodeVersion":"10.5.0","_npmUser":{"name":"terkelg","email":"terkel@terkel.com"},"dist":{"integrity":"sha512-N+z4pHB4AmUv0SjveWRd6q1Nj5w62m5jodv+GD8lvmbY/83T/rpbJGZOnK5T149OldDj4Db07BSv9xY4K6NTPQ==","shasum":"77d9622ff909080f1c19e5f4a1df0c1b0a27b88c","tarball":"http://registry-npm.ywwl.com/sisteransi/download/sisteransi-1.0.0.tgz","fileCount":4,"unpackedSize":5545,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbeAqZCRA9TVsSAnZWagAAXSgP/2gvg35XdD4TGPqW4yvf\na8zTvqRJmNuylKbCXB3WwH9B1s1tqI6nA7Ua9fGSLntG5H/5wT0wK898VRh9\nFcfDJCorTHgmqxKChPMV/jwMonxd73BYk9STrShC1A2SRfKTq5Wq6Bs5KzZy\n2ulAnyQywOnb257elJgKpNbspMyur1ox4plvF3iyYXbAlwboClaJ+2VDN7dO\nQPCrgzFtTEHY9UQNe+b+UZZzS75ehu9FRM6uSPB823b4O/QArNfKjJ1GlZl7\n02B3caVGc5D0SLkAh7Ec8hy92O2C9LrAUbcODh1cphu0t0v17hH5mSM8kqS3\nCQJ2SWdw+do9xuVp/knjI77ag/4ussvN+JIFMtvEiO1qBRu0OOc5Mp2CJaBB\n0Lli/qtmy1wz67umZdpeevJfJ7hMVlP/mx54gS8GCI699GlbRive3vkC+xVV\nz0kg2+rQb2dhUPGsQ7PvSRgrn/w6MTz8GU5rFWyfuVF1oiOOiJB3Jk6Uj2Ll\nthYBH+sDcsqs3s+h5RJnCO4fFRXUvbY8EnYHBvGsNK3P//o/Yf5iqxDZZaEF\nPSCeLiTFgt118mPG+7RPGm8DEQe3EYpTdpOxxxtq471wULApVIlcDJjfIDW3\nnUZ5Z+LVuELQ76RuufFTVxytPwi4i/fpUDgPsyOXqEZroLjOOA0U3g4wRPtD\nuGTN\r\n=GdK4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDf6G1yekXFKXrtyrlYRE5wEKEDlFwuH5xW+3XRd0HKzAiB7eQMSp8YhsHkLjAjXLF5/Pw10NhMLzv3MFaB03oKRgw=="}],"size":2342,"noattachment":false,"key":"/sisteransi/-/sisteransi-1.0.0.tgz"},"maintainers":[{"name":"terkelg","email":"terkel@terkel.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sisteransi_1.0.0_1534593689332_0.23049807964926483"},"_hasShrinkwrap":false,"readme":"# sister ANSI [![Version](https://img.shields.io/npm/v/sisteransi.svg)](https://www.npmjs.com/package/sisteransi) [![Build Status](https://travis-ci.org/terkelg/sisteransi.svg?branch=master)](https://travis-ci.org/terkelg/sisteransi) [![Downloads](https://img.shields.io/npm/dm/sisteransi.svg)](https://www.npmjs.com/package/sisteransi)\n\n> Ansi escape codes faster than you can say \"[Bam bam](https://www.youtube.com/watch?v=OcaPu9JPenU)\".\n\n## Installation\n\n```\nnpm install sisteransi\n```\n\n\n## Usage\n\n```js\nconst ansi = require('sisteransi');\n// or const { cursor } = require('sisteransi');\n\nconst p = str => process.stdout.write(str);\n\n// move cursor to 2, 1\np(ansi.cursor.to(2, 1));\n\n// to up, one down\np(ansi.cursor.up(2)+ansi.cursor.down(1));\n```\n\n## API\n\n### cursor\n\n#### to(x, y)\nSet the absolute position of the cursor. `x0` `y0` is the top left of the screen.\n\n#### move(x, y)\nSet the position of the cursor relative to its current position.\n\n#### up(count = 1)\nMove cursor up a specific amount of rows. Default is `1`.\n\n#### down(count = 1)\nMove cursor down a specific amount of rows. Default is `1`.\n\n#### forward(count = 1)\nMove cursor forward a specific amount of rows. Default is `1`.\n\n#### backward(count = 1)\nMove cursor backward a specific amount of rows. Default is `1`.\n\n#### nextLine(count = 1)\nMove cursor to the next line a specific amount of lines. Default is `1`.\n\n#### prevLine(count = 1)\nMove cursor to the previous a specific amount of lines. Default is `1`.\n\n#### left\nMove cursor to the left side.\n\n#### hide\nHide cursor.\n\n#### show\nShow cursor.\n\n#### save\n\nSave cursor position.\n\n#### restore\n\nRestore cursor position.\n\n\n### scroll\n\n#### up(count = 1)\nScroll display up a specific amount of lines. Default to `1`.\n\n#### down(count = 1)\nScroll display down a specific amount of lines. Default to `1`.\n\n\n### erase\n\n#### screen\nErase the screen and move the cursor the top left position.\n\n#### up(count = 1)\nErase the screen from the current line up to the top of the screen. Default to `1`.\n\n#### down(count = 2)\nErase the screen from the current line down to the bottom of the screen. Default to `1`.\n\n#### line\nErase the entire current line.\n\n#### lineEnd\nErase from the current cursor position to the end of the current line.\n\n#### lineStart\nErase from the current cursor position to the start of the current line.\n\n#### lines(count)\nErase from the current cursor position up the specified amount of rows.\n\n\n## Credit\n\nThis is a fork of [ansi-escapes](https://github.com/sindresorhus/ansi-escapes).\n\n\n## License\n\nMIT © [Terkel Gjervig](https://terkel.com)\n","publish_time":1534593689432,"_cnpm_publish_time":1534593689432,"dist-tags":{"latest":"2.0.0"}}