Skip to content

Commit

Permalink
Colorize output
Browse files Browse the repository at this point in the history
Signed-off-by: Rodrigo Merlo <[email protected]>
  • Loading branch information
Rodrigo Merlo committed Apr 25, 2017
1 parent d2361c6 commit 864b99b
Show file tree
Hide file tree
Showing 134 changed files with 30 additions and 34,445 deletions.
4 changes: 2 additions & 2 deletions line.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function resolveAddress(addr) {
}

function printResult({host, port, error}) {
console.log(`\t${host}:${port} - ${error ? 'ERR' : 'OK'}`);
console.log(`\t \x1b[${error?31:32}m ${host}:${port} - ${error ? 'ERR' : 'OK'}`);
}

function toHostObject(line) {
Expand Down Expand Up @@ -98,4 +98,4 @@ const hostList = lines.split('\n')
.flatMap(parseLine);

testByCategory('sample', hostList);
//console.log(hostList);
//console.log(hostList);
1 change: 0 additions & 1 deletion node_modules/.bin/esparse

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/esvalidate

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/js-yaml

This file was deleted.

179 changes: 0 additions & 179 deletions node_modules/argparse/CHANGELOG.md

This file was deleted.

21 changes: 0 additions & 21 deletions node_modules/argparse/LICENSE

This file was deleted.

Loading

0 comments on commit 864b99b

Please sign in to comment.