12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- {
- "_args": [
- [
- {
- "raw": "console-control-strings@~1.1.0",
- "scope": null,
- "escapedName": "console-control-strings",
- "name": "console-control-strings",
- "rawSpec": "~1.1.0",
- "spec": ">=1.1.0 <1.2.0",
- "type": "range"
- },
- "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/npmlog"
- ]
- ],
- "_from": "console-control-strings@>=1.1.0 <1.2.0",
- "_id": "console-control-strings@1.1.0",
- "_inCache": true,
- "_location": "/console-control-strings",
- "_nodeVersion": "4.4.0",
- "_npmOperationalInternal": {
- "host": "packages-16-east.internal.npmjs.com",
- "tmp": "tmp/console-control-strings-1.1.0.tgz_1466033396831_0.9470485949423164"
- },
- "_npmUser": {
- "name": "iarna",
- "email": "me@re-becca.org"
- },
- "_npmVersion": "3.9.2",
- "_phantomChildren": {},
- "_requested": {
- "raw": "console-control-strings@~1.1.0",
- "scope": null,
- "escapedName": "console-control-strings",
- "name": "console-control-strings",
- "rawSpec": "~1.1.0",
- "spec": ">=1.1.0 <1.2.0",
- "type": "range"
- },
- "_requiredBy": [
- "/gauge",
- "/npmlog"
- ],
- "_resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
- "_shasum": "3d7cf4464db6446ea644bf4b39507f9851008e8e",
- "_shrinkwrap": null,
- "_spec": "console-control-strings@~1.1.0",
- "_where": "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/npmlog",
- "author": {
- "name": "Rebecca Turner",
- "email": "me@re-becca.org",
- "url": "http://re-becca.org/"
- },
- "bugs": {
- "url": "https://github.com/iarna/console-control-strings/issues"
- },
- "dependencies": {},
- "description": "A library of cross-platform tested terminal/console command strings for doing things like color and cursor positioning. This is a subset of both ansi and vt100. All control codes included work on both Windows & Unix-like OSes, except where noted.",
- "devDependencies": {
- "standard": "^7.1.2",
- "tap": "^5.7.2"
- },
- "directories": {
- "test": "test"
- },
- "dist": {
- "shasum": "3d7cf4464db6446ea644bf4b39507f9851008e8e",
- "tarball": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz"
- },
- "files": [
- "LICENSE",
- "index.js"
- ],
- "gitHead": "722439b4998d2964ac3d3f9ec175c008aa9b7b4b",
- "homepage": "https://github.com/iarna/console-control-strings#readme",
- "keywords": [],
- "license": "ISC",
- "main": "index.js",
- "maintainers": [
- {
- "name": "iarna",
- "email": "me@re-becca.org"
- }
- ],
- "name": "console-control-strings",
- "optionalDependencies": {},
- "readme": "# Console Control Strings\n\nA library of cross-platform tested terminal/console command strings for\ndoing things like color and cursor positioning. This is a subset of both\nansi and vt100. All control codes included work on both Windows & Unix-like\nOSes, except where noted.\n\n## Usage\n\n```js\nvar consoleControl = require('console-control-strings')\n\nconsole.log(consoleControl.color('blue','bgRed', 'bold') + 'hi there' + consoleControl.color('reset'))\nprocess.stdout.write(consoleControl.goto(75, 10))\n```\n\n## Why Another?\n\nThere are tons of libraries similar to this one. I wanted one that was:\n\n1. Very clear about compatibility goals.\n2. Could emit, for instance, a start color code without an end one.\n3. Returned strings w/o writing to streams.\n4. Was not weighed down with other unrelated baggage.\n\n## Functions\n\n### var code = consoleControl.up(_num = 1_)\n\nReturns the escape sequence to move _num_ lines up.\n\n### var code = consoleControl.down(_num = 1_)\n\nReturns the escape sequence to move _num_ lines down.\n\n### var code = consoleControl.forward(_num = 1_)\n\nReturns the escape sequence to move _num_ lines righ.\n\n### var code = consoleControl.back(_num = 1_)\n\nReturns the escape sequence to move _num_ lines left.\n\n### var code = consoleControl.nextLine(_num = 1_)\n\nReturns the escape sequence to move _num_ lines down and to the beginning of\nthe line.\n\n### var code = consoleControl.previousLine(_num = 1_)\n\nReturns the escape sequence to move _num_ lines up and to the beginning of\nthe line.\n\n### var code = consoleControl.eraseData()\n\nReturns the escape sequence to erase everything from the current cursor\nposition to the bottom right of the screen. This is line based, so it\nerases the remainder of the current line and all following lines.\n\n### var code = consoleControl.eraseLine()\n\nReturns the escape sequence to erase to the end of the current line.\n\n### var code = consoleControl.goto(_x_, _y_)\n\nReturns the escape sequence to move the cursor to the designated position. \nNote that the origin is _1, 1_ not _0, 0_.\n\n### var code = consoleControl.gotoSOL()\n\nReturns the escape sequence to move the cursor to the beginning of the\ncurrent line. (That is, it returns a carriage return, `\\r`.)\n\n### var code = consoleControl.beep()\n\nReturns the escape sequence to cause the termianl to beep. (That is, it\nreturns unicode character `\\x0007`, a Control-G.)\n\n### var code = consoleControl.hideCursor()\n\nReturns the escape sequence to hide the cursor.\n\n### var code = consoleControl.showCursor()\n\nReturns the escape sequence to show the cursor.\n\n### var code = consoleControl.color(_colors = []_)\n\n### var code = consoleControl.color(_color1_, _color2_, _…_, _colorn_)\n\nReturns the escape sequence to set the current terminal display attributes\n(mostly colors). Arguments can either be a list of attributes or an array\nof attributes. The difference between passing in an array or list of colors\nand calling `.color` separately for each one, is that in the former case a\nsingle escape sequence will be produced where as in the latter each change\nwill have its own distinct escape sequence. Each attribute can be one of:\n\n* Reset:\n * **reset** – Reset all attributes to the terminal default.\n* Styles:\n * **bold** – Display text as bold. In some terminals this means using a\n bold font, in others this means changing the color. In some it means\n both.\n * **italic** – Display text as italic. This is not available in most Windows terminals.\n * **underline** – Underline text. This is not available in most Windows Terminals.\n * **inverse** – Invert the foreground and background colors.\n * **stopBold** – Do not display text as bold.\n * **stopItalic** – Do not display text as italic.\n * **stopUnderline** – Do not underline text.\n * **stopInverse** – Do not invert foreground and background.\n* Colors:\n * **white**\n * **black**\n * **blue**\n * **cyan**\n * **green**\n * **magenta**\n * **red**\n * **yellow**\n * **grey** / **brightBlack**\n * **brightRed**\n * **brightGreen**\n * **brightYellow**\n * **brightBlue**\n * **brightMagenta**\n * **brightCyan**\n * **brightWhite**\n* Background Colors:\n * **bgWhite**\n * **bgBlack**\n * **bgBlue**\n * **bgCyan**\n * **bgGreen**\n * **bgMagenta**\n * **bgRed**\n * **bgYellow**\n * **bgGrey** / **bgBrightBlack**\n * **bgBrightRed**\n * **bgBrightGreen**\n * **bgBrightYellow**\n * **bgBrightBlue**\n * **bgBrightMagenta**\n * **bgBrightCyan**\n * **bgBrightWhite**\n\n",
- "readmeFilename": "README.md",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/iarna/console-control-strings.git"
- },
- "scripts": {
- "test": "standard && tap test/*.js"
- },
- "version": "1.1.0"
- }
|