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

@trufflesuite/chromafi

Package Overview
Dependencies
Maintainers
13
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trufflesuite/chromafi - npm Package Compare versions

Comparing version 2.2.2 to 3.0.0

6

index.js

@@ -7,3 +7,2 @@ const hljs = require('highlight.js')

const merge = require('lodash.merge')
const ansiMark = require('ansi-mark')
const stripIndent = require('strip-indent')

@@ -325,5 +324,3 @@ const detectIndent = require('detect-indent')

const decorate = (ansiStr, opts) => {
if (opts.highlight) {
ansiStr = ansiMark(ansiStr, opts.highlight)
}
// AnsiMark has been removed for causing problems.
ansiStr = cropPadAndNumber(ansiStr, opts)

@@ -350,3 +347,2 @@ return ansiStr

end: Infinity,
highlight: false,
stripIndent: true,

@@ -353,0 +349,0 @@ codePad: 1,

@@ -150,3 +150,3 @@ import test from 'ava'

const result = chromafi(asm, opts)
t.is(result, '\u001b[37m\u001b[90m 1\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 2\u001b[37m \u001b[36m.text\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 3\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 4\u001b[37m \u001b[36m.global\u001b[37m connect \u001b[39m\n\u001b[37m\u001b[90m 5\u001b[37m \u001b[36m connect:\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 6\u001b[37m \u001b[31mmov\u001b[37m \u001b[34mr3\u001b[37m, \u001b[32m#2\u001b[37m \u001b[37m\u001b[2m; s->sin_family = AF_INET\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 7\u001b[37m \u001b[31mstrh\u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34msp\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m 8\u001b[37m \u001b[31mldr\u001b[37m \u001b[34mr3\u001b[37m, \u001b[36m=server_port\u001b[37m \u001b[37m\u001b[2m; s->sin_port = server_port\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 9\u001b[37m \u001b[31mldr\u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34mr3\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m10\u001b[37m \u001b[31mstrh\u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34msp\u001b[37m, \u001b[32m#2\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m11\u001b[37m \u001b[31mldr\u001b[37m \u001b[34mr3\u001b[37m, \u001b[36m=server_addr\u001b[37m \u001b[37m\u001b[2m; s->sin_addr = server_addr\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m12\u001b[37m \u001b[31mldr\u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34mr3\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m13\u001b[37m \u001b[31mstr\u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34msp\u001b[37m, \u001b[32m#4\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m14\u001b[37m \u001b[31mmov\u001b[37m \u001b[34mr3\u001b[37m, \u001b[32m#0\u001b[37m \u001b[37m\u001b[2m; bzero(&s->sin_zero)\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m15\u001b[37m \u001b[31mstr\u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34msp\u001b[37m, \u001b[32m#8\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m16\u001b[37m \u001b[31mstr\u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34msp\u001b[37m, \u001b[32m#12\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m17\u001b[37m \u001b[31mmov\u001b[37m \u001b[34mr1\u001b[37m, \u001b[34msp\u001b[37m \u001b[37m\u001b[2m; const struct sockaddr *addr = sp\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m18\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m19\u001b[37m \u001b[31mldr\u001b[37m \u001b[34mr7\u001b[37m, \u001b[36m=connect_call\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m20\u001b[37m \u001b[31mldr\u001b[37m \u001b[34mr7\u001b[37m, [\u001b[34mr7\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m21\u001b[37m \u001b[31mswi\u001b[37m \u001b[32m#0\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m22\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m23\u001b[37m \u001b[31madd\u001b[37m \u001b[34msp\u001b[37m, \u001b[34msp\u001b[37m, \u001b[32m#16\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m24\u001b[37m \u001b[31mpop\u001b[37m {\u001b[34mr0\u001b[37m} \u001b[37m\u001b[2m; pop sockfd\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m25\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m26\u001b[37m \u001b[31mpop\u001b[37m {\u001b[34mr7\u001b[37m} \u001b[39m\n\u001b[37m\u001b[90m27\u001b[37m \u001b[31mpop\u001b[37m {\u001b[34mfp\u001b[37m, \u001b[34mip\u001b[37m, \u001b[34mlr\u001b[37m} \u001b[39m\n\u001b[37m\u001b[90m28\u001b[37m \u001b[31mmov\u001b[37m \u001b[34msp\u001b[37m, \u001b[34mip\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m29\u001b[37m \u001b[31mbx\u001b[37m \u001b[34mlr\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m30\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m31\u001b[37m \u001b[36m.data\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m32\u001b[37m \u001b[36m socket_call:\u001b[37m \u001b[36m.long\u001b[37m \u001b[32m281\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m33\u001b[37m \u001b[36m connect_call:\u001b[37m \u001b[36m.long\u001b[37m \u001b[32m283\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m34\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m35\u001b[37m \u001b[37m\u001b[2m/* all addresses are network byte-order (big-endian) */\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m36\u001b[37m \u001b[36m server_addr:\u001b[37m \u001b[36m.long\u001b[37m \u001b[32m0x0100007f\u001b[37m \u001b[37m\u001b[2m; localhost\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m37\u001b[37m \u001b[36m server_port:\u001b[37m \u001b[36m.hword\u001b[37m \u001b[32m0x0b1a\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m38\u001b[37m \u001b[39m\n\u001b[37m\u001b[39m')
t.is(result, '\u001b[37m\u001b[44m\u001b[37m 1\u001b[37m\u001b[49m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m 2\u001b[37m\u001b[49m \u001b[36m.text\u001b[37m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m 3\u001b[37m\u001b[49m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m 4\u001b[37m\u001b[49m \u001b[36m.global\u001b[37m connect \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m 5\u001b[37m\u001b[49m \u001b[36m connect:\u001b[37m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m 6\u001b[37m\u001b[49m \u001b[31mmov\u001b[37m \u001b[34mr3\u001b[37m, \u001b[32m#2\u001b[37m \u001b[37m\u001b[2m; s->sin_family = AF_INET\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m 7\u001b[37m\u001b[49m \u001b[31mstrh\u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34msp\u001b[37m] \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m 8\u001b[37m\u001b[49m \u001b[31mldr\u001b[37m \u001b[34mr3\u001b[37m, \u001b[36m=server_port\u001b[37m \u001b[37m\u001b[2m; s->sin_port = server_port\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m 9\u001b[37m\u001b[49m \u001b[31mldr\u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34mr3\u001b[37m] \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m10\u001b[37m\u001b[49m \u001b[31mstrh\u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34msp\u001b[37m, \u001b[32m#2\u001b[37m] \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m11\u001b[37m\u001b[49m \u001b[31mldr\u001b[37m \u001b[34mr3\u001b[37m, \u001b[36m=server_addr\u001b[37m \u001b[37m\u001b[2m; s->sin_addr = server_addr\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m12\u001b[37m\u001b[49m \u001b[31mldr\u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34mr3\u001b[37m] \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m13\u001b[37m\u001b[49m \u001b[31mstr\u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34msp\u001b[37m, \u001b[32m#4\u001b[37m] \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m14\u001b[37m\u001b[49m \u001b[31mmov\u001b[37m \u001b[34mr3\u001b[37m, \u001b[32m#0\u001b[37m \u001b[37m\u001b[2m; bzero(&s->sin_zero)\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m15\u001b[37m\u001b[49m \u001b[31mstr\u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34msp\u001b[37m, \u001b[32m#8\u001b[37m] \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m16\u001b[37m\u001b[49m \u001b[31mstr\u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34msp\u001b[37m, \u001b[32m#12\u001b[37m] \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m17\u001b[37m\u001b[49m \u001b[31mmov\u001b[37m \u001b[34mr1\u001b[37m, \u001b[34msp\u001b[37m \u001b[37m\u001b[2m; const struct sockaddr *addr = sp\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m18\u001b[37m\u001b[49m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m19\u001b[37m\u001b[49m \u001b[31mldr\u001b[37m \u001b[34mr7\u001b[37m, \u001b[36m=connect_call\u001b[37m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m20\u001b[37m\u001b[49m \u001b[31mldr\u001b[37m \u001b[34mr7\u001b[37m, [\u001b[34mr7\u001b[37m] \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m21\u001b[37m\u001b[49m \u001b[31mswi\u001b[37m \u001b[32m#0\u001b[37m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m22\u001b[37m\u001b[49m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m23\u001b[37m\u001b[49m \u001b[31madd\u001b[37m \u001b[34msp\u001b[37m, \u001b[34msp\u001b[37m, \u001b[32m#16\u001b[37m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m24\u001b[37m\u001b[49m \u001b[31mpop\u001b[37m {\u001b[34mr0\u001b[37m} \u001b[37m\u001b[2m; pop sockfd\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m25\u001b[37m\u001b[49m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m26\u001b[37m\u001b[49m \u001b[31mpop\u001b[37m {\u001b[34mr7\u001b[37m} \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m27\u001b[37m\u001b[49m \u001b[31mpop\u001b[37m {\u001b[34mfp\u001b[37m, \u001b[34mip\u001b[37m, \u001b[34mlr\u001b[37m} \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m28\u001b[37m\u001b[49m \u001b[31mmov\u001b[37m \u001b[34msp\u001b[37m, \u001b[34mip\u001b[37m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m29\u001b[37m\u001b[49m \u001b[31mbx\u001b[37m \u001b[34mlr\u001b[37m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m30\u001b[37m\u001b[49m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m31\u001b[37m\u001b[49m \u001b[36m.data\u001b[37m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m32\u001b[37m\u001b[49m \u001b[36m socket_call:\u001b[37m \u001b[36m.long\u001b[37m \u001b[32m281\u001b[37m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m33\u001b[37m\u001b[49m \u001b[36m connect_call:\u001b[37m \u001b[36m.long\u001b[37m \u001b[32m283\u001b[37m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m34\u001b[37m\u001b[49m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m35\u001b[37m\u001b[49m \u001b[37m\u001b[2m/* all addresses are network byte-order (big-endian) */\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m36\u001b[37m\u001b[49m \u001b[36m server_addr:\u001b[37m \u001b[36m.long\u001b[37m \u001b[32m0x0100007f\u001b[37m \u001b[37m\u001b[2m; localhost\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m37\u001b[37m\u001b[49m \u001b[36m server_port:\u001b[37m \u001b[36m.hword\u001b[37m \u001b[32m0x0b1a\u001b[37m \u001b[39m\n\u001b[37m\u001b[44m\u001b[37m38\u001b[37m\u001b[49m \u001b[39m\n\u001b[37m\u001b[39m')
})

@@ -304,3 +304,3 @@

const result = chromafi(obj, options)
t.is(result, '\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m1\u001b[37m\u001b[40m{ \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m2\u001b[37m\u001b[40m \u001b[33mfoobar:\u001b[37m \u001b[32m1337\u001b[37m\u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m3\u001b[37m\u001b[40m} \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[22m\u001b[39m\u001b[49m')
t.is(result, '\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m1\u001b[37m\u001b[40m{ \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m2\u001b[37m\u001b[40m \u001b[30mfoobar:\u001b[37m \u001b[34m\u001b[2m1337\u001b[1m\u001b[37m\u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m3\u001b[37m\u001b[40m} \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[22m\u001b[39m\u001b[49m')
})

@@ -323,3 +323,3 @@

const result = chromafi(obj, options)
t.is(result, '\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m1\u001b[37m\u001b[40m{ \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m2\u001b[37m\u001b[40m\u001b[33mfoobar:\u001b[37m \u001b[32m1337\u001b[37m, \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m3\u001b[37m\u001b[40m\u001b[33mbax:\u001b[37m { \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m4\u001b[37m\u001b[40m\u001b[33mqux:\u001b[37m { \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m5\u001b[37m\u001b[40m\u001b[33mwombat:\u001b[37m \u001b[33m\'BOO!\'\u001b[37m\u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m6\u001b[37m\u001b[40m} \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m7\u001b[37m\u001b[40m} \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m8\u001b[37m\u001b[40m} \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[22m\u001b[39m\u001b[49m')
t.is(result, '\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m1\u001b[37m\u001b[40m{ \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m2\u001b[37m\u001b[40m\u001b[30mfoobar:\u001b[37m \u001b[34m\u001b[2m1337\u001b[1m\u001b[37m, \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m3\u001b[37m\u001b[40m\u001b[30mbax:\u001b[37m { \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m4\u001b[37m\u001b[40m\u001b[30mqux:\u001b[37m { \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m5\u001b[37m\u001b[40m\u001b[30mwombat:\u001b[37m \u001b[30m\'BOO!\'\u001b[37m\u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m6\u001b[37m\u001b[40m} \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m7\u001b[37m\u001b[40m} \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m8\u001b[37m\u001b[40m} \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[22m\u001b[39m\u001b[49m')
})

@@ -332,3 +332,3 @@

})
t.is(result, '\u001b[37m\u001b[90m1\u001b[37m \u001b[34m<\u001b[36mbody\u001b[34m>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m2\u001b[37m \u001b[34m<\u001b[36mdiv\u001b[34m>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m3\u001b[37m \u001b[34m<\u001b[36mspan\u001b[34m>\u001b[37mGood\u001b[34m</\u001b[36mspan\u001b[34m>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m4\u001b[37m \u001b[34m<\u001b[36mspan\u001b[34m>\u001b[37mBad\u001b[34m</\u001b[36mspan\u001b[34m>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m5\u001b[37m \u001b[34m</\u001b[36mdiv\u001b[34m>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m6\u001b[37m \u001b[34m<\u001b[36mbody\u001b[34m>\u001b[37m \u001b[39m\n\u001b[37m\u001b[39m')
t.is(result, '\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m1\u001b[37m\u001b[40m \u001b[34m<\u001b[36mbody\u001b[34m>\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m2\u001b[37m\u001b[40m \u001b[34m<\u001b[36mdiv\u001b[34m>\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m3\u001b[37m\u001b[40m \u001b[34m<\u001b[36mspan\u001b[34m>\u001b[37mGood\u001b[34m</\u001b[36mspan\u001b[34m>\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m4\u001b[37m\u001b[40m \u001b[34m<\u001b[36mspan\u001b[34m>\u001b[37mBad\u001b[34m</\u001b[36mspan\u001b[34m>\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m5\u001b[37m\u001b[40m \u001b[34m</\u001b[36mdiv\u001b[34m>\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m6\u001b[37m\u001b[40m \u001b[34m<\u001b[36mbody\u001b[34m>\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[22m\u001b[39m\u001b[49m')
})

@@ -342,46 +342,5 @@

})
t.is(result, '\u001b[37m\u001b[90m123\u001b[37m \u001b[34m<\u001b[36mbody\u001b[34m>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m124\u001b[37m \u001b[34m<\u001b[36mdiv\u001b[34m>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m125\u001b[37m \u001b[34m<\u001b[36mspan\u001b[34m>\u001b[37mGood\u001b[34m</\u001b[36mspan\u001b[34m>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m126\u001b[37m \u001b[34m<\u001b[36mspan\u001b[34m>\u001b[37mBad\u001b[34m</\u001b[36mspan\u001b[34m>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m127\u001b[37m \u001b[34m</\u001b[36mdiv\u001b[34m>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m128\u001b[37m \u001b[34m<\u001b[36mbody\u001b[34m>\u001b[37m \u001b[39m\n\u001b[37m\u001b[39m')
t.is(result, '\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m123\u001b[37m\u001b[40m \u001b[34m<\u001b[36mbody\u001b[34m>\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m124\u001b[37m\u001b[40m \u001b[34m<\u001b[36mdiv\u001b[34m>\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m125\u001b[37m\u001b[40m \u001b[34m<\u001b[36mspan\u001b[34m>\u001b[37mGood\u001b[34m</\u001b[36mspan\u001b[34m>\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m126\u001b[37m\u001b[40m \u001b[34m<\u001b[36mspan\u001b[34m>\u001b[37mBad\u001b[34m</\u001b[36mspan\u001b[34m>\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m127\u001b[37m\u001b[40m \u001b[34m</\u001b[36mdiv\u001b[34m>\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m128\u001b[37m\u001b[40m \u001b[34m<\u001b[36mbody\u001b[34m>\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[22m\u001b[39m\u001b[49m')
})
test('Multiline highlight, replacing color', t => {
const html = '<body>\n\t<div>\n\t\t<span>Good</span>\n\t\t<span>Bad<span>\n\t<div>\n</body>'
const result = chromafi(html, {
lang: 'html',
lineNumbers: false,
codePad: 0,
highlight: {
start: {line: 4, column: 18},
end: {line: 5, column: 9},
color: chalk.bgRed.white.bold,
resetColor: true
},
colors: {
tag: chalk.yellow
}
})
t.is(result, '\u001b[37m\u001b[33m<\u001b[36mbody\u001b[33m>\u001b[37m \u001b[39m\n\u001b[37m \u001b[33m<\u001b[36mdiv\u001b[33m>\u001b[37m \u001b[39m\n\u001b[37m \u001b[33m<\u001b[36mspan\u001b[33m>\u001b[37mGood\u001b[33m</\u001b[36mspan\u001b[33m>\u001b[37m\u001b[39m\n\u001b[37m \u001b[33m<\u001b[36mspan\u001b[33m>\u001b[37mBad\u001b[33m\u001b[41m\u001b[37m\u001b[1m<span>\u001b[22m\u001b[37m\u001b[49m \u001b[39m\n\u001b[37m\u001b[41m\u001b[37m\u001b[1m <div>\u001b[22m\u001b[37m\u001b[49m\u001b[37m \u001b[39m\n\u001b[37m\u001b[33m</\u001b[36mbody\u001b[33m>\u001b[37m \u001b[39m\n\u001b[37m\u001b[39m')
})
test('Single line highlight, replacing color', t => {
const html = `<div>Highlight me!</div>`
const result = chromafi(html, {
codePad: 0,
lang: 'html',
lineNumbers: false,
lineNumberStart: 1,
highlight: {
start: 6,
end: 18,
color: chalk.bgRed.white.bold,
resetColor: true
},
colors: {
tag: chalk.yellow
}
})
t.is(result, '\u001b[37m\u001b[33m<\u001b[36mdiv\u001b[33m>\u001b[37m\u001b[41m\u001b[37m\u001b[1mHighlight me!\u001b[22m\u001b[37m\u001b[49m\u001b[33m</\u001b[36mdiv\u001b[33m>\u001b[37m\u001b[39m\n\u001b[37m\u001b[39m')
})
test('Circular JSON throws', t => {

@@ -397,3 +356,3 @@ const a = {}

t.is(error.message, 'TypeError: 🦅 Chromafi: Converting circular structure to JSON')
t.is(error.message, 'TypeError: 🦅 Chromafi: Converting circular structure to JSON\n --> starting at object with constructor \'Object\'\n | property \'foo\' -> object with constructor \'Object\'\n --- property \'foo\' closes the circle')
})

@@ -408,3 +367,3 @@

})
t.is(result, '\u001b[37m\u001b[90m3\u001b[37m \u001b[34m<\u001b[36mspan\u001b[34m>\u001b[37mGood\u001b[34m</\u001b[36mspan\u001b[34m>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m4\u001b[37m \u001b[34m<\u001b[36mspan\u001b[34m>\u001b[37mBad\u001b[34m</\u001b[36mspan\u001b[34m>\u001b[37m \u001b[39m\n\u001b[37m\u001b[39m')
t.is(result, '\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m3\u001b[37m\u001b[40m \u001b[34m<\u001b[36mspan\u001b[34m>\u001b[37mGood\u001b[34m</\u001b[36mspan\u001b[34m>\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m4\u001b[37m\u001b[40m \u001b[34m<\u001b[36mspan\u001b[34m>\u001b[37mBad\u001b[34m</\u001b[36mspan\u001b[34m>\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[22m\u001b[39m\u001b[49m')
})

@@ -477,4 +436,4 @@

t.is(spacesOutput, '\u001b[37m{ \u001b[39m\n\u001b[37m \u001b[33mfoobar:\u001b[37m \u001b[32m1337\u001b[37m, \u001b[39m\n\u001b[37m \u001b[36m\'baz-qux\':\u001b[37m \u001b[37m\u001b[37m\u001b[31mfunction\u001b[37m (\u001b[34ma, b\u001b[37m) \u001b[37m{\u001b[39m\n\u001b[37m \u001b[31mreturn\u001b[37m \u001b[33m\'Wombat!\'\u001b[37m; \u001b[39m\n\u001b[37m }\u001b[37m \u001b[39m\n\u001b[37m} \u001b[39m\n\u001b[37m\u001b[39m\n\u001b[37m{ \u001b[39m\n\u001b[37m \u001b[33mfoobar:\u001b[37m \u001b[32m1337\u001b[37m, \u001b[39m\n\u001b[37m \u001b[36m\'baz-qux\':\u001b[37m \u001b[37m\u001b[37m\u001b[31mfunction\u001b[37m (\u001b[34ma, b\u001b[37m) \u001b[37m{\u001b[39m\n\u001b[37m \u001b[31mreturn\u001b[37m \u001b[33m\'Wombat!\'\u001b[37m; \u001b[39m\n\u001b[37m }\u001b[37m \u001b[39m\n\u001b[37m} \u001b[39m\n\u001b[37m\u001b[39m\n\u001b[37m{ \u001b[39m\n\u001b[37m \u001b[33mfoobar:\u001b[37m \u001b[32m1337\u001b[37m, \u001b[39m\n\u001b[37m \u001b[36m\'baz-qux\':\u001b[37m \u001b[37m\u001b[37m\u001b[31mfunction\u001b[37m (\u001b[34ma, b\u001b[37m) \u001b[37m{\u001b[39m\n\u001b[37m \u001b[31mreturn\u001b[37m \u001b[33m\'Wombat!\'\u001b[37m; \u001b[39m\n\u001b[37m }\u001b[37m \u001b[39m\n\u001b[37m} \u001b[39m\n\u001b[37m\u001b[39m')
t.is(tabsOutput, '\u001b[37m{ \u001b[39m\n\u001b[37m\t\u001b[33mfoobar:\u001b[37m \u001b[32m1337\u001b[37m, \u001b[39m\n\u001b[37m\t\u001b[36m\'baz-qux\':\u001b[37m \u001b[37m\u001b[37m\u001b[31mfunction\u001b[37m (\u001b[34ma, b\u001b[37m) \u001b[37m{\u001b[39m\n\u001b[37m\t\t\u001b[31mreturn\u001b[37m \u001b[33m\'Wombat!\'\u001b[37m; \u001b[39m\n\u001b[37m\t}\u001b[37m \u001b[39m\n\u001b[37m} \u001b[39m\n\u001b[37m\u001b[39m\n\u001b[37m{ \u001b[39m\n\u001b[37m\t\u001b[33mfoobar:\u001b[37m \u001b[32m1337\u001b[37m, \u001b[39m\n\u001b[37m\t\u001b[36m\'baz-qux\':\u001b[37m \u001b[37m\u001b[37m\u001b[31mfunction\u001b[37m (\u001b[34ma, b\u001b[37m) \u001b[37m{\u001b[39m\n\u001b[37m\t\t\u001b[31mreturn\u001b[37m \u001b[33m\'Wombat!\'\u001b[37m; \u001b[39m\n\u001b[37m\t}\u001b[37m \u001b[39m\n\u001b[37m} \u001b[39m\n\u001b[37m\u001b[39m\n\u001b[37m{ \u001b[39m\n\u001b[37m\t\u001b[33mfoobar:\u001b[37m \u001b[32m1337\u001b[37m, \u001b[39m\n\u001b[37m\t\u001b[36m\'baz-qux\':\u001b[37m \u001b[37m\u001b[37m\u001b[31mfunction\u001b[37m (\u001b[34ma, b\u001b[37m) \u001b[37m{\u001b[39m\n\u001b[37m\t\t\u001b[31mreturn\u001b[37m \u001b[33m\'Wombat!\'\u001b[37m; \u001b[39m\n\u001b[37m\t}\u001b[37m \u001b[39m\n\u001b[37m} \u001b[39m\n\u001b[37m\u001b[39m')
t.is(spacesOutput, '\u001b[40m\u001b[37m\u001b[1m{ \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m \u001b[30mfoobar:\u001b[37m \u001b[34m\u001b[2m1337\u001b[1m\u001b[37m, \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m \u001b[36m\'baz-qux\':\u001b[37m \u001b[30m\u001b[30m\u001b[31mfunction\u001b[30m (\u001b[30ma, b\u001b[30m) \u001b[37m{\u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m \u001b[31mreturn\u001b[37m \u001b[30m\'Wombat!\'\u001b[37m; \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m }\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m} \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m{ \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m \u001b[30mfoobar:\u001b[37m \u001b[34m\u001b[2m1337\u001b[1m\u001b[37m, \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m \u001b[36m\'baz-qux\':\u001b[37m \u001b[30m\u001b[30m\u001b[31mfunction\u001b[30m (\u001b[30ma, b\u001b[30m) \u001b[37m{\u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m \u001b[31mreturn\u001b[37m \u001b[30m\'Wombat!\'\u001b[37m; \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m }\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m} \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m{ \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m \u001b[30mfoobar:\u001b[37m \u001b[34m\u001b[2m1337\u001b[1m\u001b[37m, \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m \u001b[36m\'baz-qux\':\u001b[37m \u001b[30m\u001b[30m\u001b[31mfunction\u001b[30m (\u001b[30ma, b\u001b[30m) \u001b[37m{\u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m \u001b[31mreturn\u001b[37m \u001b[30m\'Wombat!\'\u001b[37m; \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m }\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m} \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[22m\u001b[39m\u001b[49m')
t.is(tabsOutput, '\u001b[40m\u001b[37m\u001b[1m{ \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\t\u001b[30mfoobar:\u001b[37m \u001b[34m\u001b[2m1337\u001b[1m\u001b[37m, \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\t\u001b[36m\'baz-qux\':\u001b[37m \u001b[30m\u001b[30m\u001b[31mfunction\u001b[30m (\u001b[30ma, b\u001b[30m) \u001b[37m{\u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\t\t\u001b[31mreturn\u001b[37m \u001b[30m\'Wombat!\'\u001b[37m; \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\t}\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m} \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m{ \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\t\u001b[30mfoobar:\u001b[37m \u001b[34m\u001b[2m1337\u001b[1m\u001b[37m, \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\t\u001b[36m\'baz-qux\':\u001b[37m \u001b[30m\u001b[30m\u001b[31mfunction\u001b[30m (\u001b[30ma, b\u001b[30m) \u001b[37m{\u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\t\t\u001b[31mreturn\u001b[37m \u001b[30m\'Wombat!\'\u001b[37m; \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\t}\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m} \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m{ \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\t\u001b[30mfoobar:\u001b[37m \u001b[34m\u001b[2m1337\u001b[1m\u001b[37m, \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\t\u001b[36m\'baz-qux\':\u001b[37m \u001b[30m\u001b[30m\u001b[31mfunction\u001b[30m (\u001b[30ma, b\u001b[30m) \u001b[37m{\u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\t\t\u001b[31mreturn\u001b[37m \u001b[30m\'Wombat!\'\u001b[37m; \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\t}\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m} \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[22m\u001b[39m\u001b[49m')
})

@@ -514,4 +473,4 @@ /* eslint-enable */

const result = chromafi(diff, {lang: 'diff'})
t.is(result, '\u001b[37m\u001b[90m 1\u001b[37m \u001b[37m\u001b[2mdiff --git a/about.html b/about.html\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 2\u001b[37m \u001b[37m\u001b[2mindex d09ab79..0c20c33 100644\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 3\u001b[37m \u001b[37m\u001b[2m--- a/about.html\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 4\u001b[37m \u001b[37m\u001b[2m+++ b/about.html\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 5\u001b[37m \u001b[36m@@ -19,7 +19,7 @@\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 6\u001b[37m </div> \u001b[39m\n\u001b[37m\u001b[90m 7\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 8\u001b[37m <div id="headerContainer"> \u001b[39m\n\u001b[37m\u001b[90m 9\u001b[37m \u001b[31m- <h1>About&lt/h1>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m10\u001b[37m \u001b[32m+ <h1>About This Project&lt/h1>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m11\u001b[37m </div> \u001b[39m\n\u001b[37m\u001b[90m12\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m13\u001b[37m <div id="contentContainer"> \u001b[39m\n\u001b[37m\u001b[90m14\u001b[37m \u001b[37m\u001b[2mdiff --git a/imprint.html b/imprint.html\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m15\u001b[37m \u001b[37m\u001b[2mindex 1932d95..d34d56a 100644\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m16\u001b[37m \u001b[37m\u001b[2m--- a/imprint.html\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m17\u001b[37m \u001b[37m\u001b[2m+++ b/imprint.html\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m18\u001b[37m \u001b[36m@@ -19,7 +19,7 @@\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m19\u001b[37m </div> \u001b[39m\n\u001b[37m\u001b[90m20\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m21\u001b[37m <div id="headerContainer"> \u001b[39m\n\u001b[37m\u001b[90m22\u001b[37m \u001b[31m- <h1>Imprint&lt/h1>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m23\u001b[37m \u001b[32m+ <h1>Imprint / Disclaimer&lt/h1>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m24\u001b[37m </div> \u001b[39m\n\u001b[37m\u001b[90m25\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m26\u001b[37m <div id="contentContainer"> \u001b[39m\n\u001b[37m\u001b[39m')
t.is(result, '\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m 1\u001b[37m\u001b[40m \u001b[37m\u001b[2mdiff --git a/about.html b/about.html\u001b[1m\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m 2\u001b[37m\u001b[40m \u001b[37m\u001b[2mindex d09ab79..0c20c33 100644\u001b[1m\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m 3\u001b[37m\u001b[40m \u001b[37m\u001b[2m--- a/about.html\u001b[1m\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m 4\u001b[37m\u001b[40m \u001b[37m\u001b[2m+++ b/about.html\u001b[1m\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m 5\u001b[37m\u001b[40m \u001b[36m@@ -19,7 +19,7 @@\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m 6\u001b[37m\u001b[40m </div> \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m 7\u001b[37m\u001b[40m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m 8\u001b[37m\u001b[40m <div id="headerContainer"> \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m 9\u001b[37m\u001b[40m \u001b[31m- <h1>About&lt/h1>\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m10\u001b[37m\u001b[40m \u001b[32m+ <h1>About This Project&lt/h1>\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m11\u001b[37m\u001b[40m </div> \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m12\u001b[37m\u001b[40m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m13\u001b[37m\u001b[40m <div id="contentContainer"> \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m14\u001b[37m\u001b[40m \u001b[37m\u001b[2mdiff --git a/imprint.html b/imprint.html\u001b[1m\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m15\u001b[37m\u001b[40m \u001b[37m\u001b[2mindex 1932d95..d34d56a 100644\u001b[1m\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m16\u001b[37m\u001b[40m \u001b[37m\u001b[2m--- a/imprint.html\u001b[1m\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m17\u001b[37m\u001b[40m \u001b[37m\u001b[2m+++ b/imprint.html\u001b[1m\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m18\u001b[37m\u001b[40m \u001b[36m@@ -19,7 +19,7 @@\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m19\u001b[37m\u001b[40m </div> \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m20\u001b[37m\u001b[40m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m21\u001b[37m\u001b[40m <div id="headerContainer"> \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m22\u001b[37m\u001b[40m \u001b[31m- <h1>Imprint&lt/h1>\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m23\u001b[37m\u001b[40m \u001b[32m+ <h1>Imprint / Disclaimer&lt/h1>\u001b[37m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m24\u001b[37m\u001b[40m </div> \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m25\u001b[37m\u001b[40m \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[46m\u001b[30m26\u001b[37m\u001b[40m <div id="contentContainer"> \u001b[22m\u001b[39m\u001b[49m\n\u001b[40m\u001b[37m\u001b[1m\u001b[22m\u001b[39m\u001b[49m')
})

10

package.json
{
"name": "@trufflesuite/chromafi",
"version": "2.2.2",
"version": "3.0.0",
"description": "🦅 cli syntax highlighting: any function - any object - 176 languages",

@@ -20,5 +20,2 @@ "main": "index.js",

"dependencies": {
"ansi-mark": "^1.0.0",
"ansi-regex": "^3.0.0",
"array-uniq": "^1.0.3",
"camelcase": "^4.1.0",

@@ -28,9 +25,6 @@ "chalk": "^2.3.2",

"detect-indent": "^5.0.0",
"he": "^1.1.1",
"highlight.js": "^10.4.1",
"lodash.merge": "^4.6.2",
"min-indent": "^1.0.0",
"strip-ansi": "^4.0.0",
"strip-indent": "^2.0.0",
"super-split": "^1.1.0"
"strip-indent": "^2.0.0"
},

@@ -37,0 +31,0 @@ "devDependencies": {

@@ -21,2 +21,3 @@ # Chromafi

3. This fork uses `lodash.merge` instead of `deepmerge` for Webpack compatibility.
4. This fork has removed the `ansi-mark` functionality and dependency.

@@ -23,0 +24,0 @@ ## Support

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