ansi-escape-sequences
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -6,3 +6,13 @@ #!/usr/bin/env node | ||
var seq = ansi[process.argv[2]]; | ||
if (seq) process.stdout.write(seq); | ||
var name = process.argv[2], | ||
arg1 = process.argv[3], | ||
seq = null; | ||
if (typeof ansi[name] === "function"){ | ||
seq = ansi[name](arg1); | ||
} else { | ||
seq = ansi[name]; | ||
} | ||
if (seq !== null) { | ||
process.stdout.write(seq); | ||
} |
@@ -10,2 +10,21 @@ "use strict"; | ||
exports.bold = csi + "1m"; | ||
exports.italic = csi + "3m"; | ||
exports.underline = csi + "4m"; | ||
exports.imageNegative = csi + "7m"; | ||
exports.fontDefault = csi + "10m"; | ||
exports.font2 = csi + "11m"; | ||
exports.font3 = csi + "12m"; | ||
exports.font4 = csi + "13m"; | ||
exports.font5 = csi + "14m"; | ||
exports.font6 = csi + "15m"; | ||
exports.imageNegative = csi + "7m"; | ||
exports.imagePositive = csi + "27m"; | ||
exports.black = csi + "30m"; | ||
exports.red = csi + "31m"; | ||
exports.green = csi + "32m"; | ||
exports.yellow = csi + "33m"; | ||
exports.blue = csi + "34m"; | ||
exports.magenta = csi + "35m"; | ||
exports.cyan = csi + "36m"; | ||
exports.white = csi + "37m"; |
{ | ||
"name": "ansi-escape-sequences", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A library of all known ansi escape sequences", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/75lb/ansi-escape-sequences.git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3241
44