{"_id":"sisteransi@2.0.0","bugs":{"url":"https://github.com/terkelg/sisteransi/issues"},"dist":{"shasum":"d3d7a694075c2b17094cf1a691afd7937643b936","tarball":"http://registry-npm.ywwl.com/sisteransi/download/sisteransi-2.0.0.tgz","integrity":"sha512-2WCqLdt12eN6ehLI50S2/ZxoowXU3DD1KVPRyVP0WEsFahrGZZmCdq1K59qjJljMRIDTwx1D9YaRK+hDneBUMg==","fileCount":5,"unpackedSize":7426,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/sisteransi@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCZ+/28vLWWU6miCpjRAVYCY49QulSDIWkufNYj2Pf0vgIgPs4oSlcDpIdGZMP/RJ9knBSy4axnoOx5qwfSe7eEeh8="}],"size":2908,"noattachment":false,"key":"/sisteransi/-/sisteransi-2.0.0.tgz"},"main":"./dist/index.js","name":"sisteransi","type":"module","types":"./dist/index.d.ts","author":{"url":"https://terkel.com","name":"Terkel Gjervig","email":"terkel@terkel.com"},"engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"305922fd6654df4c77d1e023aa6c55162958eccb","license":"MIT","scripts":{"test":"node --test","build":"tsc","prepublishOnly":"npm run build"},"version":"2.0.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:de1b2474-3acc-4919-8bad-b6c98b379ae3"},"approver":{"name":"terkelg","email":"terkel@terkel.com"}},"homepage":"https://github.com/terkelg/sisteransi#readme","keywords":["ansi","escape codes","escape","terminal","style"],"repository":{"url":"git+https://github.com/terkelg/sisteransi.git","type":"git"},"_npmVersion":"11.17.0","description":"ANSI escape codes for some terminal swag","directories":{},"maintainers":[{"name":"terkelg","email":"terkel@terkel.com"}],"_nodeVersion":"24.17.0","devDependencies":{"typescript":"^5.4.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sisteransi_2.0.0_1782399626888_0.532867770454126"},"_hasShrinkwrap":false,"readme":"# sister ANSI [![Version](https://img.shields.io/npm/v/sisteransi.svg)](https://www.npmjs.com/package/sisteransi) [![CI](https://github.com/terkelg/sisteransi/actions/workflows/ci.yml/badge.svg)](https://github.com/terkelg/sisteransi/actions/workflows/ci.yml) [![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> **Note:** `sisteransi` 2.0 is **ESM-only** and needs **Node.js >= 20**.\n> `import` works on any Node 20+, and CommonJS can `require()` it on\n> Node 20.19+ (where `require(esm)` is unflagged). Stay on the `1.x`\n> line only if you're on older Node.\n> (Contributing? The test suite runs the TypeScript source directly via\n> Node's type stripping, so local development needs Node.js >= 22.)\n\n\n## Usage\n\n```js\nimport { cursor } from 'sisteransi';\n// or grab everything: import * as ansi from 'sisteransi';\n\nconst p = str => process.stdout.write(str);\n\n// move cursor to 2, 1\np(cursor.to(2, 1));\n\n// up two, down one\np(cursor.up(2) + 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### clear\n\n#### screen\nClear the terminal screen. (Viewport)\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":1782399627007,"_cnpm_publish_time":1782399627007,"dist-tags":{"latest":"2.0.0"}}