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 1.1.0 to 1.1.1

9

bin/font.js

@@ -21,3 +21,8 @@ #!/usr/bin/env node

require('babel-polyfill'); //get this to work in node 0.12.x
var _stringify = require('babel-runtime/core-js/json/stringify');
var _stringify2 = _interopRequireDefault(_stringify);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Fs = require('fs');

@@ -57,3 +62,3 @@ var Chalk = require('chalk');

if (CFonts.DEBUG) {
CFonts.debugging.report('OPTIONS:\n' + (' CFonts.say("' + Program.text + '", {\n') + ('\t\'font\': "' + Program.font + '",\n') + ('\t\'align\': "' + Program.align + '",\n') + ('\t\'colors\': ' + (Program.colors ? JSON.stringify(Program.colors.split(',')) : []) + ',\n') + ('\t\'background\': "' + Program.background + '",\n') + ('\t\'letterSpacing\': ' + Program.letterSpacing + ',\n') + ('\t\'lineHeight\': ' + Program.lineHeight + ',\n') + ('\t\'space\': ' + (Program.spaceless ? false : true) + ',\n') + ('\t\'maxLength\': ' + Program.maxLength + '\n') + ' });', 3);
CFonts.debugging.report('OPTIONS:\n' + (' CFonts.say("' + Program.text + '", {\n') + ('\t\'font\': "' + Program.font + '",\n') + ('\t\'align\': "' + Program.align + '",\n') + ('\t\'colors\': ' + (Program.colors ? (0, _stringify2.default)(Program.colors.split(',')) : []) + ',\n') + ('\t\'background\': "' + Program.background + '",\n') + ('\t\'letterSpacing\': ' + Program.letterSpacing + ',\n') + ('\t\'lineHeight\': ' + Program.lineHeight + ',\n') + ('\t\'space\': ' + (Program.spaceless ? false : true) + ',\n') + ('\t\'maxLength\': ' + Program.maxLength + '\n') + ' });', 3);
}

@@ -60,0 +65,0 @@

@@ -19,2 +19,8 @@ /***************************************************************************************************************************************************************

var _repeat = require('babel-runtime/core-js/string/repeat');
var _repeat2 = _interopRequireDefault(_repeat);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var ChangeCase = require('change-case');

@@ -167,3 +173,3 @@ var WinSize = require('window-size');

output[i] += space.repeat(CFonts.OPTIONS.letterSpacing);
output[i] += (0, _repeat2.default)(space, CFonts.OPTIONS.letterSpacing);
}

@@ -250,3 +256,3 @@

var lines = output.length - CFonts.FONTFACE.lines; //last line is CFonts.FONTFACE.lines tall and is located at the bottom of the output array
space = ' '.repeat(space);
space = (0, _repeat2.default)(' ', space);

@@ -253,0 +259,0 @@ for (var i = lines; i < output.length; i++) {

{
"name": "cfonts",
"description": "Sexy fonts for the console",
"version": "1.1.0",
"version": "1.1.1",
"homepage": "https://github.com/dominikwilkowski/cfonts",

@@ -34,7 +34,6 @@ "author": {

"prepublish": "npm run build",
"test": "node ./test/fonttest.js",
"build": "npm run build:bin & npm run build:lib",
"build:bin": "babel src/bin.js --out-file bin/font.js --presets=es2015",
"build:lib": "babel src/lib.js --out-file index.js --presets=es2015",
"build:bin": "babel src/bin.js --out-file bin/font.js --presets=es2015 --plugins transform-runtime",
"build:lib": "babel src/lib.js --out-file index.js --presets=es2015 --plugins transform-runtime",
"watch": "npm run build && onchange 'src/**/*' -- npm run build"

@@ -44,3 +43,3 @@ },

"babel-cli": "^6.22.2",
"babel-polyfill": "^6.22.0",
"babel-plugin-transform-runtime": "^6.22.0",
"babel-preset-es2015": "^6.22.0",

@@ -54,6 +53,7 @@ "grunt": "~1.0.1",

"dependencies": {
"chalk": "^1.0.0",
"change-case": "^3.0.0",
"commander": "^2.6.0",
"window-size": "^0.2.0"
"babel-runtime": "6.22.0",
"chalk": "1.0.0",
"change-case": "3.0.0",
"commander": "2.6.0",
"window-size": "0.3.0"
},

@@ -69,2 +69,7 @@ "keywords": [

],
"files": [
"index.js",
"bin/*",
"fonts/*"
],
"main": "index.js",

@@ -71,0 +76,0 @@ "bin": {

@@ -194,9 +194,17 @@ ```shell

- `console` [colors: 1]
![console font style](https://raw.githubusercontent.com/dominikwilkowski/cfonts/master/img/console.png)
- `block` [colors: 2] _(default)_
![block font style](https://raw.githubusercontent.com/dominikwilkowski/cfonts/master/img/block.png)
- `simple` [colors: 1]
![simple font style](https://raw.githubusercontent.com/dominikwilkowski/cfonts/master/img/simple.png)
- `simpleBlock` [colors: 1]
- `simple` [colors: 1]
![simple-block font style](https://raw.githubusercontent.com/dominikwilkowski/cfonts/master/img/simple-block.png)
- `3d` [colors: 2]
![3d font style](https://raw.githubusercontent.com/dominikwilkowski/cfonts/master/img/3d.png)
- `simple3d` [colors: 1]
![simple-3d font style](https://raw.githubusercontent.com/dominikwilkowski/cfonts/master/img/simple-3d.png)
- `chrome` [colors: 3]
![chrome font style](https://raw.githubusercontent.com/dominikwilkowski/cfonts/master/img/chrome.png)
- `huge` [colors: 2]
![huge font style](https://raw.githubusercontent.com/dominikwilkowski/cfonts/master/img/huge.png)

@@ -344,2 +352,3 @@ ```shell

## Release History
* 1.1.1 - moved from `babel-polyfill` to `babel-plugin-transform-runtime`, added files to package.json, added images to docs, fixed dependencies
* 1.1.0 - transpiled code to support node 0.12.15 and up

@@ -346,0 +355,0 @@ * 1.0.2 - fixed background in `console` font, added comma, added font `huge`, added render method, added candy color

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