Comparing version
@@ -5,2 +5,6 @@ # Changelog | ||
## [1.0.1][] - 2021-04-13 | ||
- Add .d.ts typings | ||
## [1.0.0][] - 2020-12-16 | ||
@@ -20,4 +24,5 @@ | ||
[unreleased]: https://github.com/metarhia/concolor/compare/v1.0.0...HEAD | ||
[unreleased]: https://github.com/metarhia/concolor/compare/v1.0.1...HEAD | ||
[1.0.1]: https://github.com/metarhia/concolor/compare/v1.0.0...v1.0.1 | ||
[1.0.0]: https://github.com/metarhia/concolor/compare/v0.1.16...v1.0.0 | ||
[0.1.16]: https://github.com/metarhia/concolor/releases/tag/v0.1.16 |
{ | ||
"name": "concolor", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": "Vladyslav Dukhin <vladyslav.dukhin@gmail.com>", | ||
@@ -35,7 +35,11 @@ "description": "Console colors for strings templates in node.js", | ||
"main": "concolor.js", | ||
"files": [], | ||
"types": "types/concolor.d.ts", | ||
"files": [ | ||
"types/" | ||
], | ||
"scripts": { | ||
"test": "npm run lint && node ./test.js", | ||
"lint": "eslint . && prettier -c \"**/*.js\" \"**/*.json\" \"**/*.md\" \".*rc\" \"**/*.yml\"", | ||
"fmt": "prettier --write \"**/*.js\" \"**/*.json\" \"**/*.md\" \".*rc\" \"**/*.yml\"" | ||
"test": "npm run lint && npm run types && node ./test.js", | ||
"types": "tsc -p types/tsconfig.json", | ||
"lint": "eslint . && prettier -c \"**/*.js\" \"**/*.json\" \"**/*.md\" \".*rc\"", | ||
"fmt": "prettier --write \"**/*.js\" \"**/*.json\" \"**/*.md\" \".*rc\"" | ||
}, | ||
@@ -47,9 +51,11 @@ "engines": { | ||
"devDependencies": { | ||
"eslint": "^7.15.0", | ||
"@types/node": "^14.14.37", | ||
"eslint": "^7.24.0", | ||
"eslint-config-metarhia": "^7.0.1", | ||
"eslint-config-prettier": "^7.0.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-import": "^2.22.0", | ||
"eslint-plugin-prettier": "^3.3.0", | ||
"prettier": "^2.2.1" | ||
"eslint-plugin-prettier": "^3.3.1", | ||
"prettier": "^2.2.1", | ||
"typescript": "^4.2.3" | ||
} | ||
} |
# Concolor | ||
[](https://github.com/metarhia/concolor/actions?query=workflow%3A%22Testing+CI%22+branch%3Amaster) | ||
[](https://www.codacy.com/app/metarhia/concolor) | ||
[](https://badge.fury.io/js/concolor) | ||
[](https://www.npmjs.com/package/concolor) | ||
[](https://www.npmjs.com/package/concolor) | ||
[](https://github.com/metarhia/concolor/actions?query=workflow%3A%22Testing+CI%22+branch%3Amaster) | ||
[](https://www.codacy.com/app/metarhia/concolor) | ||
[](https://snyk.io/test/github/metarhia/impress) | ||
[](https://badge.fury.io/js/concolor) | ||
[](https://www.npmjs.com/package/concolor) | ||
[](https://www.npmjs.com/package/concolor) | ||
@@ -31,10 +32,10 @@ Concolor is a simple library for Node.js for coloring templated strings using | ||
```javascript | ||
console.log(concolor`Hello ${'World'}(blue) blue`); | ||
console.log(concolor`Hello ${'World'}(/red) on red`); | ||
console.log(concolor`Hello ${'World'}(white/yellow,b) bold white on yellow`); | ||
console.log(concolor`Hello ${'World'}(b) bold`); | ||
console.log(concolor`Hello ${'World'}(b,/blue) bold on blue`); | ||
console.log(concolor`Hello ${'World'}(b,u,yellow) bold underline yellow`); | ||
console.log(concolor`Hello ${'World'}(blue,u) blue underline`); | ||
console.log(concolor`Hello ${'World'}(b,black/green) bold black on green`); | ||
console.log(concolor`Ave ${'World'}(blue) blue`); | ||
console.log(concolor`Ave ${'World'}(/red) on red`); | ||
console.log(concolor`Ave ${'World'}(white/yellow,b) bold white on yellow`); | ||
console.log(concolor`Ave ${'World'}(b) bold`); | ||
console.log(concolor`Ave ${'World'}(b,/blue) bold on blue`); | ||
console.log(concolor`Ave ${'World'}(b,u,yellow) bold underline yellow`); | ||
console.log(concolor`Ave ${'World'}(blue,u) blue underline`); | ||
console.log(concolor`Ave ${'World'}(b,black/green) bold black on green`); | ||
@@ -41,0 +42,0 @@ console.log(concolor` |
Sorry, the diff of this file is not supported yet
10789
10.86%7
40%161
24.81%119
0.85%8
33.33%