Every new change

This commit is contained in:
Luca Schwan
2020-03-25 11:05:34 +01:00
parent ff8491e75f
commit b4d041c5de
7164 changed files with 499221 additions and 135 deletions

3
node_modules/cli-width/.npmignore generated vendored Normal file
View File

@ -0,0 +1,3 @@
test
coverage
CHANGELOG.md

11
node_modules/cli-width/.travis.yml generated vendored Normal file
View File

@ -0,0 +1,11 @@
language: node_js
node_js:
- '0.10'
- '0.11'
- '0.12'
- 'iojs-1'
- 'iojs-2'
- 'iojs-3'
- '4.0'
after_script:
- npm run coveralls

16
node_modules/cli-width/CHANGELOG.md generated vendored Normal file
View File

@ -0,0 +1,16 @@
# Change Log
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
<a name="2.2.0"></a>
# [2.2.0](https://github.com/knownasilya/cli-width/compare/v2.1.1...v2.2.0) (2017-08-22)
### Features
* return default if env is 0 ([1833baf](https://github.com/knownasilya/cli-width/commit/1833baf)), closes [#9](https://github.com/knownasilya/cli-width/issues/9)
<a name="2.1.1"></a>
## [2.1.1](https://github.com/knownasilya/cli-width/compare/v2.1.0...v2.1.1) (2017-08-22)

13
node_modules/cli-width/LICENSE generated vendored Normal file
View File

@ -0,0 +1,13 @@
Copyright (c) 2015, Ilya Radchenko <ilya@burstcreations.com>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

72
node_modules/cli-width/README.md generated vendored Normal file
View File

@ -0,0 +1,72 @@
cli-width
=========
Get stdout window width, with four fallbacks, `tty`, `output.columns`, a custom environment variable and then a default.
[![npm version](https://badge.fury.io/js/cli-width.svg)](http://badge.fury.io/js/cli-width)
[![Build Status](https://travis-ci.org/knownasilya/cli-width.svg)](https://travis-ci.org/knownasilya/cli-width)
[![Coverage Status](https://coveralls.io/repos/knownasilya/cli-width/badge.svg?branch=master&service=github)](https://coveralls.io/github/knownasilya/cli-width?branch=master)
## Usage
```
npm install --save cli-width
```
```js
'use strict';
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 width value is going to be `0`, that can be changed using the configurable `options`.
## API
### cliWidth([options])
`cliWidth` can be configured using an `options` parameter, the possible properties are:
- **defaultWidth**\<number\> Defines a default value to be used if none of the methods are available, defaults to `0`
- **output**\<object\> A stream to be used to read width values from, defaults to `process.stdout`
- **tty**\<object\> TTY module to try to read width from as a fallback, defaults to `require('tty')`
### Examples
Defining both a default width value and a stream output to try to read from:
```js
var cliWidth = require('cli-width');
var ttys = require('ttys');
cliWidth({
defaultWidth: 80,
output: ttys.output
});
```
Defines a different tty module to read width from:
```js
var cliWidth = require('cli-width');
var ttys = require('ttys');
cliWidth({
tty: ttys
});
```
## Tests
```bash
npm install
npm test
```
Coverage can be generated with `npm run coverage`.

49
node_modules/cli-width/index.js generated vendored Normal file
View File

@ -0,0 +1,49 @@
'use strict';
exports = module.exports = cliWidth;
function normalizeOpts(options) {
var defaultOpts = {
defaultWidth: 0,
output: process.stdout,
tty: require('tty')
};
if (!options) {
return defaultOpts;
} else {
Object.keys(defaultOpts).forEach(function (key) {
if (!options[key]) {
options[key] = defaultOpts[key];
}
});
return options;
}
}
function cliWidth(options) {
var opts = normalizeOpts(options);
if (opts.output.getWindowSize) {
return opts.output.getWindowSize()[0] || opts.defaultWidth;
} else {
if (opts.tty.getWindowSize) {
return opts.tty.getWindowSize()[1] || opts.defaultWidth;
} else {
if (opts.output.columns) {
return opts.output.columns;
} else {
if (process.env.CLI_WIDTH) {
var width = parseInt(process.env.CLI_WIDTH, 10);
if (!isNaN(width) && width !== 0) {
return width;
}
}
}
return opts.defaultWidth;
}
}
};

59
node_modules/cli-width/package.json generated vendored Normal file
View File

@ -0,0 +1,59 @@
{
"_from": "cli-width@^2.0.0",
"_id": "cli-width@2.2.0",
"_inBundle": false,
"_integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=",
"_location": "/cli-width",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "cli-width@^2.0.0",
"name": "cli-width",
"escapedName": "cli-width",
"rawSpec": "^2.0.0",
"saveSpec": null,
"fetchSpec": "^2.0.0"
},
"_requiredBy": [
"/inquirer"
],
"_resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz",
"_shasum": "ff19ede8a9a5e579324147b0c11f0fbcbabed639",
"_spec": "cli-width@^2.0.0",
"_where": "/Users/Luca_Schwan/Desktop/DSABot/node_modules/inquirer",
"author": {
"name": "Ilya Radchenko",
"email": "ilya@burstcreations.com"
},
"bugs": {
"url": "https://github.com/knownasilya/cli-width/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Get stdout window width, with two fallbacks, tty and then a default.",
"devDependencies": {
"coveralls": "^2.11.4",
"isparta": "^3.0.4",
"rimraf": "^2.4.3",
"standard-version": "^4.2.0",
"tap-spec": "^4.1.0",
"tape": "^3.4.0"
},
"homepage": "https://github.com/knownasilya/cli-width",
"license": "ISC",
"main": "index.js",
"name": "cli-width",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/knownasilya/cli-width.git"
},
"scripts": {
"coverage": "isparta cover test/*.js | tspec",
"coveralls": "npm run coverage -s && coveralls < coverage/lcov.info",
"postcoveralls": "rimraf ./coverage",
"release": "standard-version",
"test": "node test | tspec"
},
"version": "2.2.0"
}