eight-colors
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "eight-colors", | ||
"version": "1.0.0", | ||
"description": "eight colors", | ||
"main": "index.js", | ||
"files": [ | ||
"index.js" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/cenfun/eight-colors.git" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^7.20.0" | ||
} | ||
"name": "eight-colors", | ||
"version": "1.0.1", | ||
"description": "eight colors", | ||
"main": "lib/index.js", | ||
"files": [ | ||
"lib" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/cenfun/eight-colors.git" | ||
}, | ||
"scripts": { | ||
"test": "node ./test/test.js" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^8.13.0" | ||
}, | ||
"dependencies": {} | ||
} |
@@ -10,6 +10,6 @@ # Eight Colors | ||
## APIs | ||
* 8 colors: black, red, green, yellow, blue, magenta, cyan, white | ||
* other: reset, bold, faint, italic, underline, inverse, hidden, strike | ||
* remove color: remove | ||
* eight colors: black, red, green, yellow, blue, magenta, cyan, white | ||
* styles: reset, bold, faint, italic, underline, inverse, hidden, strike | ||
* remove color | ||
* log color | ||
## Usage | ||
@@ -38,2 +38,8 @@ ```js | ||
//log color | ||
EC.logColor("string", "red"); | ||
EC.logGreen('green string'); | ||
EC.logRed('red string'); | ||
EC.logCyan('cyan string'); | ||
``` | ||
@@ -43,2 +49,5 @@ | ||
* 1.0.1 | ||
* added log color API | ||
* 1.0.0 |
3158
75
50