Comparing version 1.1.0 to 1.1.1
@@ -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 @@ |
10
index.js
@@ -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 |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
372
2
166049
5
12
4104
+ Addedbabel-runtime@6.22.0
+ Addedansi-regex@1.1.1(transitive)
+ Addedbabel-runtime@6.22.0(transitive)
+ Addedchalk@1.0.0(transitive)
+ Addedchange-case@3.0.0(transitive)
+ Addedcommander@2.6.0(transitive)
+ Addedcore-js@2.6.12(transitive)
+ Addedget-stdin@4.0.1(transitive)
+ Addedhas-ansi@1.0.3(transitive)
+ Addedregenerator-runtime@0.10.5(transitive)
+ Addedstrip-ansi@2.0.1(transitive)
+ Addedsupports-color@1.3.1(transitive)
+ Addedwindow-size@0.3.0(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedchalk@1.1.3(transitive)
- Removedchange-case@3.1.0(transitive)
- Removedcommander@2.20.3(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.0(transitive)
- Removedwindow-size@0.2.0(transitive)
Updatedchalk@1.0.0
Updatedchange-case@3.0.0
Updatedcommander@2.6.0
Updatedwindow-size@0.3.0