{"name":"sisteransi","version":"1.0.5","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.13.2"},"gitHead":"58a3aff12121a7e876c1b47612571bf2757c916a","bugs":{"url":"https://github.com/terkelg/sisteransi/issues"},"homepage":"https://github.com/terkelg/sisteransi#readme","_id":"sisteransi@1.0.5","_nodeVersion":"13.7.0","_npmVersion":"6.14.2","dist":{"integrity":"sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==","shasum":"134d681297756437cc05ca01370d3a7a571075ed","tarball":"http://registry-npm.ywwl.com/sisteransi/download/sisteransi-1.0.5.tgz","fileCount":5,"unpackedSize":6791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJechnGCRA9TVsSAnZWagAA9YQP/ArJNzkeRNIp5Jpmiycb\nP/43QdysDmwg28S21o+qpu9jmYGmILOtsg+KMKDAjF8XTtuXO3ndGNE4tL1S\nMrfNwgAqYsgvhNrZlmr1riXkQvroVs7ICBlhpT0g3qEYnryihXOzH7twYcgM\n2R5e0KfHUQ7qmH2er15qYzBzHtwx4JVfp+uwFL3Rl0VIgSVjcTzrlPflH8+U\ngfEMFXbw7L1Ap2muDpxVPMD2Y+oyMwQ+2TNtkYzwpRIc1jfwgYWseAWo12tg\nt6MzI0iBPsITgcB6mTj4QlYPasiDd6yBbwEXTUbwBur6kIOyh2cf2XJEoTZi\nA18No+ivhPt8zJY7ukvDnGNqSi700SyOsz7vS33rx6ITMz7dWvvmCS8hkFUx\nb1Y/xC9jSgdIKinS3V3rkHTrXiDk9+hsAGSuLGDf2vOkBzKHgLR8Ejh+OE4R\ngQWQBOmpRQQdilmhHPuZpMhc05o4ffy9RGmVXSnsTx5vnRTKSANrowW/UGBm\nd6SwGBg1ze+/sUxtlACaI5zCBsaicEoZFYBL03HfiF7NZNOwECCZ60BNfE+F\nuOUrEBE4TKKoB0iSsgi1F3PXLok/gNNDB/u9rWczaFq8g4VC16AOvNBa1yQh\nNqpTrwAsZ2YdlDkcpA3ZVsqRQJElYgn5EoWmSmA4ktNU+XXl12OdLVnovvc2\nsdfZ\r\n=sznn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnoA/ZOotLkb4HXSFr40n2KIUj1P42UEGRQ1Ju19roFAIhAMFyh51Ls36i0bGRoYDlLiKwZ15wtPD68+SvlksLTmUB"}],"size":2600,"noattachment":false,"key":"/sisteransi/-/sisteransi-1.0.5.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.5_1584536006513_0.162565355758854"},"_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":1584536006602,"_cnpm_publish_time":1584536006602,"dist-tags":{"latest":"2.0.0"}}