{"name":"sisteransi","version":"0.1.1","description":"ANSI escape codes for some terminal swag","homepage":"https://github.com/terkelg/sisteransi","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":"^4.1.1","tape":"^4.9.0"},"gitHead":"2c5ccd96c7dffd469afb5b3634dd3e672df7ab27","bugs":{"url":"https://github.com/terkelg/sisteransi/issues"},"_id":"sisteransi@0.1.1","_npmVersion":"6.1.0","_nodeVersion":"10.5.0","_npmUser":{"name":"terkelg","email":"terkel@terkel.com"},"dist":{"integrity":"sha512-PmGOd02bM9YO5ifxpw36nrNMBTptEtfRl4qUYl9SndkolplkrZZOW7PGHjrZL53QvMVj9nQ+TKqUnRsw4tJa4g==","shasum":"5431447d5f7d1675aac667ccd0b865a4994cb3ce","tarball":"http://registry-npm.ywwl.com/sisteransi/download/sisteransi-0.1.1.tgz","fileCount":4,"unpackedSize":5506,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbMwQBCRA9TVsSAnZWagAAn+0P/0mzPN9MsSkZffeeJhav\nFsjJi9jlgNOvzB5dsLgAdTksKsKe0ysz3Wzugo0q9Fshn7ZufuZjtKaXEqJo\nWMgMGoVNs9UUtzW9GrSvc7mh2fdaKmk/HCaG8no83u14MH00Yrvijhx8Fx6c\nmzikqgrrItHNQ0K9QmZAcpIpCmD564NrPPQwQpiL0bvlmf6BJYmJXzz2nCPs\ncHwuMj9zBORxdofXwB4w4WhmGoquhQir1ARMyGFAkqZlyW1qzPu4An45h3dl\niGVeVXr8KnsSbi3vVPzyuRt7Y+tSHGK1xSA8vx9aE3AN9I/0pVDuv+8VjpQD\njT/XaLBCyVEKKpDqpD2vyRamWPOBZJG2fc1vz3d/r70wSwVLtMvWtV6uLckv\n+kgsMd7OLTpJU6i6cUid/67Xndznnvs4GEnw0lIdiWyW5v6gxgQaDKcLXhwT\nmlhXIQz8+lJx9ZVTYa3ExUMGDboyAD0ev3WtXV19S2ioZfcQiaMvFWXcfLoh\nJbZRnYn5ahdOj902P9q0czTr55LUWZsc2nlu5yDX3W8I/h90PR4bviIeCtQv\n54hSPz7hm+NKPGrzAZtS2Md0r7civW86THDGogYxKchB16o2evpDVVESGy8e\nuzZ857Zdbkh+MDqpFGWR/NQC+IojYMOwycNYZXXExMxPFFntUsWdgXEY89yO\n8Jf0\r\n=fCXI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgawh2/5hQBBjkDJnLxY2+Ck8lioTCZn9NBWOHmHIaDQIhAKC9dHk5dWUHcPDjuGQ7Nst0jMiLnVXWbKOcEvCASss7"}],"size":2398,"noattachment":false,"key":"/sisteransi/-/sisteransi-0.1.1.tgz"},"maintainers":[{"name":"terkelg","email":"terkel@terkel.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sisteransi_0.1.1_1530070017384_0.7328006777591958"},"_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":1530070017468,"_cnpm_publish_time":1530070017468,"dist-tags":{"latest":"2.0.0"}}