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.9 to 0.6.10

2

lib/ansi_to_html.js

@@ -168,3 +168,3 @@ 'use strict';

22: function _() {
return closeTag(stack, 'b');
return pushStyle(stack, 'font-weight:normal');
},

@@ -171,0 +171,0 @@ 23: function _() {

{
"name": "ansi-to-html",
"version": "0.6.9",
"version": "0.6.10",
"description": "Convert ansi escaped text streams to html.",

@@ -5,0 +5,0 @@ "main": "lib/ansi_to_html.js",

@@ -277,16 +277,2 @@ /* globals describe, it*/

it('renders un-bold code appropriately', function (done) {
const text = '\x1b[1mHello\x1b[22m World';
const result = '<b>Hello</b> World';
return test(text, result, done);
});
it('skips rendering un-bold code appropriately', function (done) {
const text = 'Hello\x1b[22m World';
const result = 'Hello World';
return test(text, result, done);
});
it('renders un-italic code appropriately', function (done) {

@@ -305,3 +291,3 @@ const text = '\x1b[3mHello\x1b[23m World';

});
it('renders overline', function (done) {

@@ -313,2 +299,9 @@ const text = '\x1b[53mHello World';

});
it('renders normal text', function (done) {
const text = '\x1b[1m\x1b[36mname\x1b[22m|';
const result = '<b><span style="color:#0AA">name<span style="font-weight:normal">|</span></span></b>';
return test(text, result, done);
});
});

@@ -315,0 +308,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