-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d53f063
commit ca2edb3
Showing
4 changed files
with
64 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
var color = require('../safe'); | ||
|
||
console.log() | ||
console.log(" Group Color:") | ||
console.log() | ||
console.log(' =>', color.red.bold('Hello!' + color.yellow.bold('world!') + 'wcj!')) | ||
console.log(' =>', color.red('red') + ' plain ' + color.blue('blue')); | ||
console.log(' =>', color.red('red ' + color.underline.yellow('blue') + ' wcj!')); | ||
console.log(' =>', color.red.magenta_bt.underline('hello')); | ||
|
||
// 背景色 | ||
console.log(' =>', color.magenta_b('hello')); | ||
console.log(' =>', color.magenta_bbt('hello')); | ||
// 文字颜色 | ||
console.log(' =>', color.magenta('hello')); | ||
console.log(' =>', color.magenta_bt('hello')); | ||
// 文字颜色 + 背景色 | ||
console.log(' =>', color.magenta_bt.underline('hello ' + color.blue_bt('wo' + color.yellow_bt.magenta_bbt('r') + 'ld') + ' !!!!')); | ||
console.log(' =>', color.magenta_bt.underline('hello ' + color.blue_bt('wo' + color.yellow_bt.magenta_bbt('r')))); | ||
console.log(' =>', color.magenta_bt.underline('hello ' + color.blue_bt('world') + ' !!!!' + color.yellow('kenny') + ' wong' )); | ||
|
||
|
||
console.log(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters