Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ansi-escape-sequences

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ansi-escape-sequences - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

14

bin/cli.js

@@ -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";

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc