full-width-of-terminal
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -9,3 +9,3 @@ // | ||
const size = Math.ceil(columns / str.length) | ||
return new Array(size + 1).join(str).substr(0, columns) | ||
return str.repeat(size + 1).substr(0, columns) | ||
} |
{ | ||
"name": "full-width-of-terminal", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "The string is displayed on the full width of the terminal.", | ||
@@ -20,7 +20,7 @@ "main": "build/index.js", | ||
"babel-eslint": "^10.1.0", | ||
"eslint-plugin-flowtype": "^5.2.0", | ||
"flow-bin": "^0.132.0", | ||
"flow-remove-types": "^2.132.0", | ||
"jest": "^26.4.2", | ||
"standard": "^14.3.4" | ||
"eslint-plugin-flowtype": "^8.0.3", | ||
"flow-bin": "^0.168.0", | ||
"flow-remove-types": "^2.168.0", | ||
"jest": "^27.4.6", | ||
"standard": "^16.0.4" | ||
}, | ||
@@ -27,0 +27,0 @@ "scripts": { |
3225