{"name":"sisteransi","version":"1.0.4","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":"d08d16ec5663dfa99bc2ec3c3ccbb09d41c7cd36","bugs":{"url":"https://github.com/terkelg/sisteransi/issues"},"homepage":"https://github.com/terkelg/sisteransi#readme","_id":"sisteransi@1.0.4","_nodeVersion":"13.0.1","_npmVersion":"6.12.0","dist":{"integrity":"sha512-/ekMoM4NJ59ivGSfKapeG+FWtrmWvA1p6FBZwXrqojw90vJu8lBmrTxCMuBCydKtkaUe2zt4PlxeTKpjwMbyig==","shasum":"386713f1ef688c7c0304dc4c0632898941cad2e3","tarball":"http://registry-npm.ywwl.com/sisteransi/download/sisteransi-1.0.4.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\nwsFcBAEBCAAQBQJdyFdVCRA9TVsSAnZWagAAQ8wP/ifxifhTDdieak2cfE2W\n+/N4JE7K59Z2F3Q5Y6g4FefSk264rG+wPFrC05V8983IOk0mfvFCP36v+ejM\n7o+7K/lEaSuxrEBrpt+yRqaIGL2sNAx6yMMhnTzhpL+IY++UwmXva7kjziSa\nRQRKIZXzc51zxkh6MzC2LsVAuK92YSAltEwPBaR9yjHd+cER5UNb3VI8CP7N\nflyvWG26mKk/epHUGekRKjVv2lHACqy4Gwq3+glyr+nJ/DpaQStVfavL5wsv\nH/orKsj95n+DDhkO/du8Dwlt/me79RSMXpSGxSzpe42NR2J1+kU72pcdjGCB\nWEz3CDCJmsYFV//S0XoWbeMhS8E0Ul6nm6Lhu8yXAnQLaSSYULi5Co/ta5W6\ntbLPkLNWBt0rx84lRkjv+xHzNn/aiYckwRCwgkAG19kvRVXvJykiwzNxrFEU\ni0DAc92Kuz7w/CAgPTdOB6w3Sc5HKb+FPO+sSslZM5014nxVNxKzXHG+du6O\n1x4uvlsnGNSfcFW4o9F2fgR2+00+TcL8tZjvuVyd7G2uk5Su4Azt7u5Ws2tg\n1DKsDVt9NnJk6aiP/r6rCCGn31H0uUrYqqp0CSBGMpe1m4SgPQUthRUBfOYL\nfQhDvjEGZG3INHqCdiLb1CfKDEvEJzlECP9VTLTVcNivuOUbutAlNe7LngcX\nZ4V2\r\n=lrGF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCevMIJnGGWkt8x+x4fZcoae8Img2LCb71JDl+fUyC/kQIhAKHL2LGOxzJMxLOaElCVX+heVRMV9M9TgdM3/Pkq0JOu"}],"size":2599,"noattachment":false,"key":"/sisteransi/-/sisteransi-1.0.4.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.4_1573410645036_0.6193041481886665"},"_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":1573410645193,"_cnpm_publish_time":1573410645193,"dist-tags":{"latest":"2.0.0"}}