Init
This commit is contained in:
commit
4e066bffc9
10017 changed files with 1322084 additions and 0 deletions
36
node_modules/cli-width/README.md
generated
vendored
Normal file
36
node_modules/cli-width/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
cli-width
|
||||
=========
|
||||
|
||||
Get stdout window width, with three fallbacks, `tty`, a custom environment variable and then a default.
|
||||
|
||||
[](http://badge.fury.io/js/cli-width)
|
||||
[](https://travis-ci.org/knownasilya/cli-width)
|
||||
[](https://coveralls.io/github/knownasilya/cli-width?branch=master)
|
||||
|
||||
## 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, and the environment variable isn't set,
|
||||
the default is `0` and can be changed via `cliWidth.defaultWidth = 200;`.
|
||||
|
||||
## Tests
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm test
|
||||
```
|
||||
|
||||
Coverage can be generated with `npm run coverage`.
|
||||
Loading…
Reference in a new issue