Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions bin/util/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
const { Readable } = require('stream');

const isCommandline = (userAgent) => {
const check = (userAgent.search(/curl|wget/i) !== -1);
return check;
return (userAgent.search(/curl|wget/i) !== -1);
};

const getStream = (req, res) => {
Expand Down
26 changes: 13 additions & 13 deletions lib/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ const color = require('ansi-styles'),

const
// table color
tblclr = (border) => {return cyan(border);},
tblclr = (border) => cyan(border),
// normal ansi colors
white = (txt) => {return color.white.open+txt+color.white.close;},
black = (txt) => {return color.black.open+txt+color.black.close;},
green = (txt) => {return color.green.open+txt+color.green.close;},
cyan = (txt) => {return color.cyan.open+txt+color.cyan.close;},
magenta = (txt) => {return color.magenta.open+txt+color.magenta.close;},
yellow = (txt) => {return color.yellow.open+txt+color.yellow.close;},
red = (txt) => {return color.red.open+txt+color.red.close;},
white = (txt) => color.white.open + txt + color.white.close,
black = (txt) => color.black.open + txt + color.black.close,
green = (txt) => color.green.open + txt + color.green.close,
cyan = (txt) => color.cyan.open + txt + color.cyan.close,
magenta = (txt) => color.magenta.open + txt + color.magenta.close,
yellow = (txt) => color.yellow.open + txt + color.yellow.close,
red = (txt) => color.red.open + txt + color.red.close,
// bright ansi colors
cyanBright = (txt) => {return color.cyanBright.open+txt+color.cyanBright.close;},
magentaBright = (txt) => {return color.magentaBright.open+txt+color.magentaBright.close;},
redBright = (txt) => {return color.redBright.open+txt+color.redBright.close;},
greenBright = (txt) => {return color.greenBright.open+txt+color.greenBright.close;},
cyanBright = (txt) => color.cyanBright.open + txt + color.cyanBright.close,
magentaBright = (txt) => color.magentaBright.open + txt + color.magentaBright.close,
redBright = (txt) => color.redBright.open + txt + color.redBright.close,
greenBright = (txt) => color.greenBright.open + txt + color.greenBright.close,
// background ansi color
cyanBG = (txt) => {return color.bgCyan.open+txt+color.bgCyan.close;},
cyanBG = (txt) => color.bgCyan.open + txt + color.bgCyan.close,
// horizontal line
line = '-'.repeat(60);

Expand Down