UNPKG

canonical

Version:

Canonical code style linter and formatter for JavaScript, SCSS and CSS.

87 lines (86 loc) 4.67 kB
{ "_args": [ [ "ansi-escapes@https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.1.0.tgz", "/Users/gajus/Documents/dev/canonical-code-style/canonical" ] ], "_from": "ansi-escapes@>=1.1.0 <2.0.0", "_id": "ansi-escapes@1.1.0", "_inCache": true, "_location": "/ansi-escapes", "_phantomChildren": {}, "_requested": { "name": "ansi-escapes", "raw": "ansi-escapes@https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.1.0.tgz", "rawSpec": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.1.0.tgz", "scope": null, "spec": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.1.0.tgz", "type": "remote" }, "_requiredBy": [ "/inquirer" ], "_resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.1.0.tgz", "_shasum": "21608edd3a4fc5a568c3b8d83ed4acc289d5ec77", "_shrinkwrap": null, "_spec": "ansi-escapes@https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.1.0.tgz", "_where": "/Users/gajus/Documents/dev/canonical-code-style/canonical", "author": { "email": "sindresorhus@gmail.com", "name": "Sindre Sorhus", "url": "sindresorhus.com" }, "bugs": { "url": "https://github.com/sindresorhus/ansi-escapes/issues" }, "dependencies": {}, "description": "ANSI escape codes for manipulating the terminal", "devDependencies": { "ava": "0.0.4", "xo": "*" }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], "homepage": "https://github.com/sindresorhus/ansi-escapes#readme", "keywords": [ "ansi", "cli", "code", "codes", "command-line", "console", "control", "cursor", "escape", "escapes", "formatting", "log", "logging", "sequence", "shell", "string", "terminal", "text", "tty", "vt100", "xterm" ], "license": "MIT", "name": "ansi-escapes", "optionalDependencies": {}, "readme": "# ansi-escapes [![Build Status](https://travis-ci.org/sindresorhus/ansi-escapes.svg?branch=master)](https://travis-ci.org/sindresorhus/ansi-escapes)\n\n> [ANSI escape codes](http://www.termsys.demon.co.uk/vtansi.htm) for manipulating the terminal\n\n\n## Install\n\n```\n$ npm install --save ansi-escapes\n```\n\n\n## Usage\n\n```js\nvar ansiEscapes = require('ansi-escapes');\n\n// moves the cursor two rows up and to the left\nprocess.stdout.write(ansiEscapes.cursorUp(2) + ansiEscapes.cursorLeft);\n//=> '\\u001b[2A\\u001b[1000D'\n```\n\n\n## API\n\n### cursorTo([x, [y]])\n\nSet the absolute position of the cursor. `x0` `y0` is the top left of the screen.\n\nSpecify either both `x` & `y`, only `x`, or nothing.\n\n### cursorMove(x, [y])\n\nSet the position of the cursor relative to its current position.\n\n### cursorUp(count)\n\nMove cursor up a specific amount of rows. Default is `1`.\n\n### cursorDown(count)\n\nMove cursor down a specific amount of rows. Default is `1`.\n\n### cursorForward(count)\n\nMove cursor forward a specific amount of rows. Default is `1`.\n\n### cursorBackward(count)\n\nMove cursor backward a specific amount of rows. Default is `1`.\n\n### cursorLeft\n\nMove cursor to the left side.\n\n### cursorSavePosition\n\nSave cursor position.\n\n### cursorRestorePosition\n\nRestore saved cursor position.\n\n### cursorGetPosition\n\nGet cursor position.\n\n### cursorNextLine\n\nMove cursor to the next line.\n\n### cursorPrevLine\n\nMove cursor to the previous line.\n\n### cursorHide\n\nHide cursor.\n\n### cursorShow\n\nShow cursor.\n\n### eraseLines(count)\n\nErase from the current cursor position up the specified amount of rows.\n\n### eraseEndLine\n\nErase from the current cursor position to the end of the current line.\n\n### eraseStartLine\n\nErase from the current cursor position to the start of the current line.\n\n### eraseLine\n\nErase the entire current line.\n\n### eraseDown\n\nErase the screen from the current line down to the bottom of the screen.\n\n### eraseUp\n\nErase the screen from the current line up to the top of the screen.\n\n### eraseScreen\n\nErase the screen and move the cursor the top left position.\n\n### scrollUp\n\nScroll display up one line.\n\n### scrollDown\n\nScroll display down one line.\n\n### beep\n\nOutput a beeping sound.\n\n\n## Related\n\n- [ansi-styles](https://github.com/chalk/ansi-styles) - ANSI escape codes for styling strings in the terminal\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n", "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/ansi-escapes.git" }, "scripts": { "test": "xo && node test.js" }, "version": "1.1.0" }