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

ansi-to-html

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ansi-to-html - npm Package Compare versions

Comparing version 0.6.6 to 0.6.7

6

lib/ansi_to_html.js

@@ -136,2 +136,5 @@ 'use strict';

},
2: function _() {
return pushStyle(stack, 'filter:brightness(0.7)');
},
3: function _() {

@@ -163,2 +166,5 @@ return pushTag(stack, 'i');

return pushBackgroundColor(stack, options.bg);
},
53: function _() {
return pushStyle(stack, 'text-decoration:overline');
}

@@ -165,0 +171,0 @@ };

6

package.json
{
"name": "ansi-to-html",
"version": "0.6.6",
"version": "0.6.7",
"description": "Convert ansi escaped text streams to html.",

@@ -54,2 +54,6 @@ "main": "lib/ansi_to_html.js",

"email": "gitgrimbo@gmail.com"
},
{
"name": "NeeEoo",
"url": "https://github.com/NeeEoo"
}

@@ -56,0 +60,0 @@ ],

4

README.md

@@ -7,3 +7,5 @@ ## Ansi to Html

This is a port of the ansi to html converter from [bcat](https://github.com/rtomayko/bcat/blob/master/lib/bcat/ansi.rb) to Javascript.
This was originally a port of the ansi to html converter from
[bcat](https://github.com/rtomayko/bcat/blob/master/lib/bcat/ansi.rb) to Javascript. It has since
undergone quite a lot of modification.

@@ -10,0 +12,0 @@ It has a few additions:

@@ -102,2 +102,9 @@ /* globals describe, it*/

it('renders faint text', function(done) {
const text = 'faint: \x1b[2mstuff';
const result = 'faint: <span style="filter:brightness(0.7)">stuff</span>';
return test(text, result, done);
});
it('handles resets', function (done) {

@@ -291,2 +298,9 @@ const text = '\x1b[1mthis is bold\x1b[0m, but this isn\'t';

});
it('renders overline', function (done) {
const text = '\x1b[53mHello World';
const result = '<span style="text-decoration:overline">Hello World</span>';
return test(text, result, done);
});
});

@@ -293,0 +307,0 @@

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