Comparing version 0.1.9 to 0.1.10
@@ -11,3 +11,3 @@ 'use strict'; | ||
/* 7 */ 'cyan', | ||
/* 8 */ 'white' | ||
/* 8 */ 'white', | ||
]; | ||
@@ -24,3 +24,3 @@ | ||
/* 8 */ 'c', // conceal | ||
/* 9 */ 's' // strikethrough | ||
/* 9 */ 's', // strikethrough | ||
]; | ||
@@ -27,0 +27,0 @@ |
{ | ||
"name": "concolor", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"author": "Vladyslav Dukhin <vladyslav.dukhin@gmail.com>", | ||
@@ -29,3 +29,4 @@ "description": "Console colors for strings templates in node.js", | ||
"test": "npm run lint && node ./test.js", | ||
"lint": "eslint ." | ||
"lint": "eslint . && prettier --debug-check \"**/*.js\" \"**/*.json\" \"**/*.md\" .eslintrc .prettierrc", | ||
"fmt": "prettier --write \"**/*.js\" \"**/*.json\" \"**/*.md\" .eslintrc .prettierrc --ignore-path .gitignore" | ||
}, | ||
@@ -37,4 +38,7 @@ "engines": { | ||
"devDependencies": { | ||
"eslint": "^4.19.1" | ||
"eslint": "^5.13.0", | ||
"eslint-config-prettier": "^4.0.0", | ||
"eslint-plugin-prettier": "^3.0.1", | ||
"prettier": "1.16.4" | ||
} | ||
} |
@@ -23,2 +23,3 @@ # Concolor | ||
## String tag | ||
```js | ||
@@ -29,2 +30,3 @@ console.log(concolor`text ${expression}(styles)`); | ||
Examples: | ||
```javascript | ||
@@ -48,2 +50,3 @@ console.log(concolor`Hello ${'World'}(blue) blue`); | ||
## Tag factory | ||
```js | ||
@@ -55,2 +58,3 @@ const tag = concolor(styles); | ||
Examples: | ||
```javascript | ||
@@ -67,2 +71,3 @@ const warn = concolor('b,yellow'); | ||
## Style function | ||
```js | ||
@@ -74,2 +79,3 @@ const style = concolor(styles); | ||
Examples: | ||
```javascript | ||
@@ -86,2 +92,3 @@ const warn = concolor('b,yellow'); | ||
## Themes | ||
```js | ||
@@ -91,3 +98,3 @@ const theme = concolor({ | ||
text: 'green', | ||
link: 'u,yellow' | ||
link: 'u,yellow', | ||
}); | ||
@@ -101,4 +108,3 @@ | ||
${{ text }} | ||
${{ link }}` | ||
); | ||
${{ link }}`); | ||
``` | ||
@@ -112,3 +118,3 @@ | ||
text: 'green', | ||
link: 'u,yellow' | ||
link: 'u,yellow', | ||
}); | ||
@@ -115,0 +121,0 @@ |
@@ -27,4 +27,3 @@ 'use strict'; | ||
${'n for negative'}(n) | ||
${'s for strikethrough'}(s)` | ||
); | ||
${'s for strikethrough'}(s)`); | ||
@@ -83,3 +82,3 @@ console.log('\nComplex examples:'); | ||
text: 'green', | ||
link: 'u,yellow' | ||
link: 'u,yellow', | ||
}); | ||
@@ -93,4 +92,3 @@ | ||
${{ text }} | ||
${{ link }}` | ||
); | ||
${{ link }}`); | ||
@@ -97,0 +95,0 @@ console.log('\nThemes as functions:\n'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14665
9
118
4
200