Socket
Socket
Sign inDemoInstall

cli-width

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.1.0

13

index.js

@@ -33,7 +33,12 @@ 'use strict';

else {
if (process.env.CLI_WIDTH) {
var width = parseInt(process.env.CLI_WIDTH, 10);
if (opts.output.columns) {
return opts.output.columns;
}
else {
if (process.env.CLI_WIDTH) {
var width = parseInt(process.env.CLI_WIDTH, 10);
if (!isNaN(width)) {
return width;
if (!isNaN(width)) {
return width;
}
}

@@ -40,0 +45,0 @@ }

{
"name": "cli-width",
"version": "2.0.0",
"version": "2.1.0",
"description": "Get stdout window width, with two fallbacks, tty and then a default.",

@@ -5,0 +5,0 @@ "main": "index.js",

cli-width
=========
Get stdout window width, with three fallbacks, `tty`, a custom environment variable and then a default.
Get stdout window width, with four fallbacks, `tty`, `output.columns`, a custom environment variable and then a default.

@@ -6,0 +6,0 @@ [![npm version](https://badge.fury.io/js/cli-width.svg)](http://badge.fury.io/js/cli-width)

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc