Comparing version 4.0.0 to 4.1.0
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="4.1.0"></a> | ||
# [4.1.0](https://github.com/yargs/cliui/compare/v4.0.0...v4.1.0) (2018-04-23) | ||
### Features | ||
* add resetOutput method ([#57](https://github.com/yargs/cliui/issues/57)) ([7246902](https://github.com/yargs/cliui/commit/7246902)) | ||
<a name="4.0.0"></a> | ||
@@ -7,0 +17,0 @@ # [4.0.0](https://github.com/yargs/cliui/compare/v3.2.0...v4.0.0) (2017-12-18) |
@@ -24,2 +24,6 @@ var stringWidth = require('string-width') | ||
UI.prototype.resetOutput = function () { | ||
this.rows = [] | ||
} | ||
UI.prototype.div = function () { | ||
@@ -213,3 +217,3 @@ if (arguments.length === 0) this.div('') | ||
col.width = widths[c] | ||
if (_this.wrap) wrapped = wrap(col.text, _this._negatePadding(col), {hard: true}).split('\n') | ||
if (_this.wrap) wrapped = wrap(col.text, _this._negatePadding(col), { hard: true }).split('\n') | ||
else wrapped = col.text.split('\n') | ||
@@ -216,0 +220,0 @@ |
{ | ||
"name": "cliui", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "easily create complex multi-column command-line-interfaces", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -111,1 +111,6 @@ # cliui | ||
a new line being created. | ||
### cliui.resetOutput() | ||
Resets the UI elements of the current cliui instance, maintaining the values | ||
set for `width` and `wrap`. |
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
14471
267
116