Skip to content

Commit

Permalink
Update docs: missing semicolon in sample code (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
omidnikrah authored and DABH committed Dec 31, 2019
1 parent baa0e1c commit 7ddd6a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ The super nifty way
var colors = require('colors');

console.log('hello'.green); // outputs green text
console.log('i like cake and pies'.underline.red) // outputs red underlined text
console.log('i like cake and pies'.underline.red); // outputs red underlined text
console.log('inverse the color'.inverse); // inverses the color
console.log('OMG Rainbows!'.rainbow); // rainbow
console.log('Run the trap'.trap); // Drops the bass
Expand All @@ -105,7 +105,7 @@ or a slightly less nifty way which doesn't extend `String.prototype`
var colors = require('colors/safe');

console.log(colors.green('hello')); // outputs green text
console.log(colors.red.underline('i like cake and pies')) // outputs red underlined text
console.log(colors.red.underline('i like cake and pies')); // outputs red underlined text
console.log(colors.inverse('inverse the color')); // inverses the color
console.log(colors.rainbow('OMG Rainbows!')); // rainbow
console.log(colors.trap('Run the trap')); // Drops the bass
Expand Down

0 comments on commit 7ddd6a3

Please sign in to comment.