Comparing version 2.4.5 to 2.4.6
@@ -29,2 +29,3 @@ /*************************************************************************************************************************************************************** | ||
* Colorize - Replace placeholders with color information | ||
* UpperCaseFirst - Upper case the first character of an input string | ||
* AddChar - Add a new character to the output array | ||
@@ -51,4 +52,2 @@ * AddLetterSpacing - Add letter spacing for the next character | ||
var ChangeCase = require('change-case'); | ||
var WinSize = require('window-size'); | ||
@@ -355,2 +354,16 @@ | ||
/** | ||
* Upper case the first character of an input string. | ||
* | ||
* @author https://github.com/blakeembrey/change-case/tree/master/packages/upper-case-first | ||
* | ||
* @param {string} input - A string to be converted | ||
* | ||
* @return {string} - A string with the first letter in upper case | ||
*/ | ||
var UpperCaseFirst = function UpperCaseFirst(input) { | ||
return typeof input === 'string' ? input.charAt(0).toUpperCase() + input.substr(1) : input; | ||
}; | ||
/** | ||
* Add a new character to the output array | ||
@@ -848,3 +861,3 @@ * | ||
if (OPTIONS.background !== 'transparent') { | ||
var bgcolor = "bg".concat(ChangeCase.upperCaseFirst(OPTIONS.background)); | ||
var bgcolor = "bg".concat(UpperCaseFirst(OPTIONS.background)); | ||
write = AnsiSytle[bgcolor].open + '\n' + write + AnsiSytle[bgcolor].close; // result in one string with background | ||
@@ -1113,2 +1126,3 @@ } | ||
Colorize: Colorize, | ||
UpperCaseFirst: UpperCaseFirst, | ||
AddChar: AddChar, | ||
@@ -1115,0 +1129,0 @@ AddLetterSpacing: AddLetterSpacing, |
{ | ||
"name": "cfonts", | ||
"description": "Sexy fonts for the console", | ||
"version": "2.4.5", | ||
"version": "2.4.6", | ||
"homepage": "https://github.com/dominikwilkowski/cfonts", | ||
@@ -45,13 +45,12 @@ "author": { | ||
"devDependencies": { | ||
"@babel/cli": "^7.5.5", | ||
"@babel/core": "^7.5.5", | ||
"@babel/preset-env": "^7.5.5", | ||
"@babel/cli": "^7.7.7", | ||
"@babel/core": "^7.7.7", | ||
"@babel/preset-env": "^7.7.7", | ||
"jest-cli": "^24.9.0", | ||
"onchange": "^6.0.0" | ||
"onchange": "^6.1.0" | ||
}, | ||
"peerDependencies": {}, | ||
"dependencies": { | ||
"ansi-styles": "^4.1.0", | ||
"chalk": "^2.4.2", | ||
"change-case": "^3.1.0", | ||
"ansi-styles": "^4.2.0", | ||
"chalk": "^3.0.0", | ||
"window-size": "^1.1.1" | ||
@@ -58,0 +57,0 @@ }, |
@@ -344,2 +344,3 @@ ```shell | ||
## Release History | ||
* 2.4.6 - bumped dependencies, removed `change-case` dependency, added `UpperCaseFirst` with tests | ||
* 2.4.5 - bumped dependencies, moved to relative links for fonts for webpack support (#22) | ||
@@ -346,0 +347,0 @@ * 2.4.4 - bumped dependencies |
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
194267
3
5180
388
+ Addedchalk@3.0.0(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedsupports-color@7.2.0(transitive)
- Removedchange-case@^3.1.0
- Removedansi-styles@3.2.1(transitive)
- Removedcamel-case@3.0.0(transitive)
- Removedchalk@2.4.2(transitive)
- Removedchange-case@3.1.0(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedconstant-case@2.0.0(transitive)
- Removeddot-case@2.1.1(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedheader-case@1.0.1(transitive)
- Removedis-lower-case@1.1.3(transitive)
- Removedis-upper-case@1.1.2(transitive)
- Removedlower-case@1.1.4(transitive)
- Removedlower-case-first@1.0.2(transitive)
- Removedno-case@2.3.2(transitive)
- Removedparam-case@2.1.1(transitive)
- Removedpascal-case@2.0.1(transitive)
- Removedpath-case@2.1.1(transitive)
- Removedsentence-case@2.1.1(transitive)
- Removedsnake-case@2.1.0(transitive)
- Removedsupports-color@5.5.0(transitive)
- Removedswap-case@1.1.2(transitive)
- Removedtitle-case@2.1.1(transitive)
- Removedupper-case@1.1.3(transitive)
- Removedupper-case-first@1.1.2(transitive)
Updatedansi-styles@^4.2.0
Updatedchalk@^3.0.0