{"name":"sisteransi","version":"1.0.3","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"},"types":"./src/sisteransi.d.ts","keywords":["ansi","escape codes","escape","terminal","style"],"devDependencies":{"tap-spec":"^5.0.0","tape":"^4.11.0"},"gitHead":"15649cfbf3f4caec0f643e9cc9f64c7994277da5","bugs":{"url":"https://github.com/terkelg/sisteransi/issues"},"homepage":"https://github.com/terkelg/sisteransi#readme","_id":"sisteransi@1.0.3","_nodeVersion":"12.5.0","_npmVersion":"6.10.2","dist":{"integrity":"sha512-SbEG75TzH8G7eVXFSN5f9EExILKfly7SUvVY5DhhYLvfhKqhDFY0OzevWa/zwak0RLRfWS5AvfMWpd9gJvr5Yg==","shasum":"98168d62b79e3a5e758e27ae63c4a053d748f4eb","tarball":"http://registry-npm.ywwl.com/sisteransi/download/sisteransi-1.0.3.tgz","fileCount":5,"unpackedSize":6780,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdR98QCRA9TVsSAnZWagAA5icQAItW5JUSj3B0kBMIgfxH\nytX2moUD+biJQn7H4htJAAT75bc1lJTGvJpmezpg19muHS7xXo3etHG3TQiK\n0KaERM1JFqp4EREUorbu88m6z8drOAz9NJTR+8TommIKiD4YoDtqoVQEO6st\nq8l66cj1aeTxD7mBVEYUeb+S3qLBXKXhG89jDAGWUA4bzIl52UNA8pnSUUVv\nryG2szbToo8mqu8Pv1VrjE0lFeTzw7WoERzPI/H8L9u7OeLdEEPxNqzoOXjQ\n7oZ0nAz5Q5v3NrZfSYNV4NtK5H7wF5m2m2wbtlUpk7Xbwmkel9JNJFlad6DC\nVIad8ceHuRAOkWxQS4NJvOzQyLtMXPKsR9NY1OXuVUwOi2MDkOxzwXhrICB8\nGMCfyMRYLAisBa6MYGEl39OJBrqLLD1mIvkxD51Dz3yhXOH4ekEHJQjiQjEG\n61uRyI8xeOR7hWNdo9ECGuDv13YJ+M3mfZUnzhQ5utXCscW6QvW8El/7/imB\nFH4zt7Q7GmQ6VX2C3bzL687tmOoGYvah3P1FMNOe3uz+DEfmj5hFbTPWSrej\nTjjM1HS4carB0KhAgnWGvYQ+Pljoj3/tJhkWVjKQ2i/dVxAMs55tRqqFHZah\nIJiD+csWJY7w7zIG67pZlOJb1VC86HpiSRccT/AwyEhwkKhcYgPYUcJnVpKX\nbd98\r\n=0qHS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH1DHZ7c4uHPpXaqi43STc89TS70OocVd0+MnvrpIchMAiBmaQwf+2lhdFDD/WzdZHB4VPC+SzhqBJs/8l1Ijpju3Q=="}],"size":2598,"noattachment":false,"key":"/sisteransi/-/sisteransi-1.0.3.tgz"},"maintainers":[{"name":"terkelg","email":"terkel@terkel.com"}],"_npmUser":{"name":"terkelg","email":"terkel@terkel.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sisteransi_1.0.3_1564991247380_0.19668738890350967"},"_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":1564991247510,"_cnpm_publish_time":1564991247510,"dist-tags":{"latest":"2.0.0"}}