mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 02:15:24 +00:00
.. | ||
coverage | ||
.npmignore | ||
.travis.yml | ||
index.js | ||
LICENSE | ||
package.json | ||
README.md |
cli-width
Get stdout window width, with three fallbacks, tty
, a custom environment variable and then a default.
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
.