Socket
Socket
Sign inDemoInstall

cliui

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cliui - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

10

CHANGELOG.md

@@ -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)

6

index.js

@@ -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 @@

2

package.json
{
"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`.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc