Sha256: 18106608d342a88efc0b7eb171dc7dd3587cc1b355f498f90eb5f28c8a553363
Contents?: true
Size: 477 Bytes
Versions: 62
Compression:
Stored size: 477 Bytes
Contents
cli-width ========= Get stdout window width, with three fallbacks, `tty`, a custom environment variable and then a default. ## Usage ``` npm install --save cli-width ``` ```js '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, the default is `0` and can be changed via `cliWidth.defaultWidth = 200;`. ## Tests ```bash npm install npm test ```
Version data entries
62 entries across 62 versions & 1 rubygems