Skip to content

Commit

Permalink
refactor: change check for process object (@bcoe)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrimue committed Jan 18, 2017
1 parent 4b16b35 commit a7d315f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ function _minWidth (col) {
}

function getWindowWidth () {
if (process && process.stdout && process.stdout.columns) return process.stdout.columns
if (typeof process === 'object' && process.stdout && process.stdout.columns) return process.stdout.columns
}

function alignRight (str, width) {
Expand Down

0 comments on commit a7d315f

Please sign in to comment.