wazuh-kibana-app/node_modules/cli-width
2016-06-28 19:30:19 -07:00
..
coverage Initial commit 2016-06-28 19:30:19 -07:00
.npmignore Initial commit 2016-06-28 19:30:19 -07:00
.travis.yml Initial commit 2016-06-28 19:30:19 -07:00
index.js Initial commit 2016-06-28 19:30:19 -07:00
LICENSE Initial commit 2016-06-28 19:30:19 -07:00
package.json Initial commit 2016-06-28 19:30:19 -07:00
README.md Initial commit 2016-06-28 19:30:19 -07:00

cli-width

Get stdout window width, with three fallbacks, tty, a custom environment variable and then a default.

npm version Build Status Coverage Status

Usage

npm install --save cli-width
'use stict';

var cliWidth = require('cli-width');

cliWidth(); // maybe 204 :)

You can also set the CLI_WIDTH environment variable.

If none of the methods are supported, and the environment variable isn't set, the default is 0 and can be changed via cliWidth.defaultWidth = 200;.

Tests

npm install
npm test

Coverage can be generated with npm run coverage.