aboutsummaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/console-control-strings/index.js
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2017-01-26 17:21:26 +0100
committerJeremiah Senkpiel <fishrock123@rocketmail.com>2017-01-30 14:47:24 -0500
commitafb7c1bac87d943a9ca6422c7100e0e3fe291740 (patch)
tree1ce1f8214473a200de9de52989c1ec8aad8ddf89 /deps/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/console-control-strings/index.js
parent5de3cf099cd01c84d1809dab90c041b76aa58d8e (diff)
downloadandroid-node-v8-afb7c1bac87d943a9ca6422c7100e0e3fe291740.tar.gz
android-node-v8-afb7c1bac87d943a9ca6422c7100e0e3fe291740.tar.bz2
android-node-v8-afb7c1bac87d943a9ca6422c7100e0e3fe291740.zip
deps: upgrade npm to 4.1.2
PR-URL: https://github.com/nodejs/node/pull/11020 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'deps/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/console-control-strings/index.js')
-rw-r--r--deps/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/console-control-strings/index.js125
1 files changed, 0 insertions, 125 deletions
diff --git a/deps/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/console-control-strings/index.js b/deps/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/console-control-strings/index.js
deleted file mode 100644
index bf890348ec..0000000000
--- a/deps/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/console-control-strings/index.js
+++ /dev/null
@@ -1,125 +0,0 @@
-'use strict'
-
-// These tables borrowed from `ansi`
-
-var prefix = '\x1b['
-
-exports.up = function up (num) {
- return prefix + (num || '') + 'A'
-}
-
-exports.down = function down (num) {
- return prefix + (num || '') + 'B'
-}
-
-exports.forward = function forward (num) {
- return prefix + (num || '') + 'C'
-}
-
-exports.back = function back (num) {
- return prefix + (num || '') + 'D'
-}
-
-exports.nextLine = function nextLine (num) {
- return prefix + (num || '') + 'E'
-}
-
-exports.previousLine = function previousLine (num) {
- return prefix + (num || '') + 'F'
-}
-
-exports.horizontalAbsolute = function horizontalAbsolute (num) {
- if (num == null) throw new Error('horizontalAboslute requires a column to position to')
- return prefix + num + 'G'
-}
-
-exports.eraseData = function eraseData () {
- return prefix + 'J'
-}
-
-exports.eraseLine = function eraseLine () {
- return prefix + 'K'
-}
-
-exports.goto = function (x, y) {
- return prefix + y + ';' + x + 'H'
-}
-
-exports.gotoSOL = function () {
- return '\r'
-}
-
-exports.beep = function () {
- return '\x07'
-}
-
-exports.hideCursor = function hideCursor () {
- return prefix + '?25l'
-}
-
-exports.showCursor = function showCursor () {
- return prefix + '?25h'
-}
-
-var colors = {
- reset: 0,
-// styles
- bold: 1,
- italic: 3,
- underline: 4,
- inverse: 7,
-// resets
- stopBold: 22,
- stopItalic: 23,
- stopUnderline: 24,
- stopInverse: 27,
-// colors
- white: 37,
- black: 30,
- blue: 34,
- cyan: 36,
- green: 32,
- magenta: 35,
- red: 31,
- yellow: 33,
- bgWhite: 47,
- bgBlack: 40,
- bgBlue: 44,
- bgCyan: 46,
- bgGreen: 42,
- bgMagenta: 45,
- bgRed: 41,
- bgYellow: 43,
-
- grey: 90,
- brightBlack: 90,
- brightRed: 91,
- brightGreen: 92,
- brightYellow: 93,
- brightBlue: 94,
- brightMagenta: 95,
- brightCyan: 96,
- brightWhite: 97,
-
- bgGrey: 100,
- bgBrightBlack: 100,
- bgBrightRed: 101,
- bgBrightGreen: 102,
- bgBrightYellow: 103,
- bgBrightBlue: 104,
- bgBrightMagenta: 105,
- bgBrightCyan: 106,
- bgBrightWhite: 107
-}
-
-exports.color = function color (colorWith) {
- if (arguments.length !== 1 || !Array.isArray(colorWith)) {
- colorWith = Array.prototype.slice.call(arguments)
- }
- return prefix + colorWith.map(colorNameToCode).join(';') + 'm'
-}
-
-function colorNameToCode (color) {
- if (colors[color] != null) return colors[color]
- throw new Error('Unknown color or style name: ' + color)
-}