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.13 to 0.6.14

2

lib/ansi_to_html.js

@@ -464,3 +464,3 @@ "use strict";

}, {
pattern: /^\r\n/,
pattern: /^\r+\n/,
sub: newline

@@ -467,0 +467,0 @@ }, {

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

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

"url": "https://github.com/lior-chervinsky"
},
{
"name": "Maple Miao",
"url": "https://github.com/mapleeit"
}

@@ -75,0 +79,0 @@ ],

@@ -44,2 +44,9 @@ const {expect} = require('chai');

it('returns plain text when given plain text with multi CR', function (done) {
const text = 'testCRLF\r\r\r\ntest';
const result = 'testCRLF\r\r\r\ntest';
return test(text, result, done);
});
it('renders foreground colors', function (done) {

@@ -336,2 +343,9 @@ const text = 'colors: \x1b[30mblack\x1b[37mwhite';

it('renders windows styled line breaks (multi CR+LF)', function (done) {
const text = 'testCRLF\r\r\r\ntestLF';
const result = 'testCRLF<br/>testLF';
return test(text, result, done, {newline: true});
});
it('renders multiple line breaks', function (done) {

@@ -338,0 +352,0 @@ const text = 'test\n\ntest\n';

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