ansi-to-html
Advanced tools
Comparing version 0.6.6 to 0.6.7
@@ -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 @@ }; |
{ | ||
"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 @@ ], |
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36483
862
99