Socket
Socket
Sign inDemoInstall

ansi-html

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ansi-html - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

8

index.js

@@ -61,3 +61,3 @@ module.exports = ansiHTML;

// Replace with markup.
return text.replace(/\033\[(\d+)*m/g, function(match, seq){
var ret = text.replace(/\033\[(\d+)*m/g, function(match, seq){
var ot = openTags[seq];

@@ -83,2 +83,8 @@ if (ot) {

});
// Make sure tags are closed.
var l = ansiCodes.length;
(l > 0) && (ret += Array(l + 1).join('</span>'));
return ret;
}

@@ -85,0 +91,0 @@

2

package.json
{
"name": "ansi-html",
"version": "0.0.3",
"version": "0.0.4",
"description": "An elegant lib that converts the chalked (ANSI) text to HTML.",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

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