Package Exports
- cli-width
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cli-width) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
cli-width
Get stdout window width, with two fallbacks, tty
and then a default.
Usage
npm install --save cli-width
'use stict';
var cliWidth = require('cli-width');
cliWidth(); // maybe 204 :)
If none of the methods are supported, the default is 0
and
can be changed via cliWidth.defaultWidth = 200;
.
Tests
npm install
npm test