Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cfonts

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cfonts - npm Package Compare versions

Comparing version 2.4.5 to 2.4.6

20

lib/index.js

@@ -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,

15

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc