Skip to content

Commit

Permalink
Run lint and npm audit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DABH committed Feb 12, 2022
1 parent c9e1be4 commit 01a1edf
Show file tree
Hide file tree
Showing 6 changed files with 1,463 additions and 227 deletions.
1 change: 1 addition & 0 deletions examples/normal-usage.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ console.log('Background color attack!'.black.bgWhite);
console.log('Use random styles on everything!'.random);
console.log('America, Heck Yeah!'.america);

// eslint-disable-next-line max-len
console.log('Blindingly '.brightCyan + 'bright? '.brightRed + 'Why '.brightYellow + 'not?!'.brightGreen);

console.log('Setting themes is useful');
Expand Down
1 change: 1 addition & 0 deletions examples/safe-string.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ console.log(colors.black.bgWhite('Background color attack!'));
console.log(colors.random('Use random styles on everything!'));
console.log(colors.america('America, Heck Yeah!'));

// eslint-disable-next-line max-len
console.log(colors.brightCyan('Blindingly ') + colors.brightRed('bright? ') + colors.brightYellow('Why ') + colors.brightGreen('not?!'));

console.log('Setting themes is useful');
Expand Down
2 changes: 1 addition & 1 deletion lib/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ var stylize = colors.stylize = function stylize(str, style) {
var styleMap = ansiStyles[style];

// Stylize should work for non-ANSI styles, too
if(!styleMap && style in colors){
if (!styleMap && style in colors) {
// Style maps like trap operate as functions on strings;
// they don't have properties like open or close.
return colors[style](str);
Expand Down

0 comments on commit 01a1edf

Please sign in to comment.