Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikwilkowski committed Apr 23, 2018
2 parents 6099fe5 + 62bf149 commit b1dcd9a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ npm run test


## Release History
* 2.0.1 - Foxed terminal width detection
* 2.0.0 - Added tests, split into more pure functions
* 1.2.0 - Added `transparent` and `system` as default background and color option, added `backgroundColor` as alias for `background`, upgraded deps
* 1.1.3 - Fixed help text, removing old -t option
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cfonts",
"description": "Sexy fonts for the console",
"version": "2.0.0",
"version": "2.0.1",
"homepage": "https://github.com/dominikwilkowski/cfonts",
"author": {
"name": "Dominik Wilkowski",
Expand Down
8 changes: 6 additions & 2 deletions src/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,12 @@ const AddLetterSpacing = ( output, fontLines, fontLetterspace, fontColors, color
* @type {object}
*/
const Size = {
width: WinSize.width || 80,
height: WinSize.height || 24,
width: WinSize
? WinSize.width
: 80,
height: WinSize
? WinSize.height
: 24,
};


Expand Down

0 comments on commit b1dcd9a

Please sign in to comment.