mirror of
https://github.com/wishthis/wishthis.git
synced 2026-04-28 18:27:58 -04:00
Switch to FUI nightly
This commit is contained in:
9
node_modules/cli-width/.travis.yml
generated
vendored
9
node_modules/cli-width/.travis.yml
generated
vendored
@@ -1,14 +1,7 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "0.10"
|
||||
- "0.11"
|
||||
- "0.12"
|
||||
- "iojs-1"
|
||||
- "iojs-2"
|
||||
- "iojs-3"
|
||||
- "4.0"
|
||||
- "8"
|
||||
- "10"
|
||||
- "12"
|
||||
- "node"
|
||||
after_script:
|
||||
- npm run coveralls
|
||||
|
||||
12
node_modules/cli-width/CHANGELOG.md
generated
vendored
12
node_modules/cli-width/CHANGELOG.md
generated
vendored
@@ -2,6 +2,18 @@
|
||||
|
||||
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.
|
||||
|
||||
## [3.0.0](https://github.com/knownasilya/cli-width/compare/v2.2.1...v3.0.0) (2020-04-14)
|
||||
|
||||
|
||||
### ⚠ BREAKING CHANGES
|
||||
|
||||
* Dropped support for node < 10
|
||||
* Dropped support for IOjs
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* drop node < 10 ([e42f6a7](https://github.com/knownasilya/cli-width/commit/e42f6a756ea47f85f736e6de2d7364d4d60a7dfe))
|
||||
|
||||
### [2.2.1](https://github.com/knownasilya/cli-width/compare/v2.2.0...v2.2.1) (2020-04-14)
|
||||
|
||||
|
||||
|
||||
22
node_modules/cli-width/README.md
generated
vendored
22
node_modules/cli-width/README.md
generated
vendored
@@ -1,5 +1,4 @@
|
||||
cli-width
|
||||
=========
|
||||
# cli-width
|
||||
|
||||
Get stdout window width, with four fallbacks, `tty`, `output.columns`, a custom environment variable and then a default.
|
||||
|
||||
@@ -7,6 +6,8 @@ Get stdout window width, with four fallbacks, `tty`, `output.columns`, a custom
|
||||
[](https://travis-ci.org/knownasilya/cli-width)
|
||||
[](https://coveralls.io/github/knownasilya/cli-width?branch=master)
|
||||
|
||||
Tested against NodeJS v10+
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
@@ -14,9 +15,9 @@ npm install --save cli-width
|
||||
```
|
||||
|
||||
```js
|
||||
'use strict';
|
||||
"use strict";
|
||||
|
||||
var cliWidth = require('cli-width');
|
||||
const cliWidth = require("cli-width");
|
||||
|
||||
cliWidth(); // maybe 204 :)
|
||||
```
|
||||
@@ -36,29 +37,28 @@ the default width value is going to be `0`, that can be changed using the config
|
||||
- **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');
|
||||
const cliWidth = require("cli-width");
|
||||
const ttys = require("ttys");
|
||||
|
||||
cliWidth({
|
||||
defaultWidth: 80,
|
||||
output: ttys.output
|
||||
output: ttys.output,
|
||||
});
|
||||
```
|
||||
|
||||
Defines a different tty module to read width from:
|
||||
|
||||
```js
|
||||
var cliWidth = require('cli-width');
|
||||
var ttys = require('ttys');
|
||||
const cliWidth = require("cli-width");
|
||||
const ttys = require("ttys");
|
||||
|
||||
cliWidth({
|
||||
tty: ttys
|
||||
tty: ttys,
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
12
node_modules/cli-width/index.js
generated
vendored
12
node_modules/cli-width/index.js
generated
vendored
@@ -1,12 +1,12 @@
|
||||
'use strict';
|
||||
"use strict";
|
||||
|
||||
exports = module.exports = cliWidth;
|
||||
|
||||
function normalizeOpts(options) {
|
||||
var defaultOpts = {
|
||||
let defaultOpts = {
|
||||
defaultWidth: 0,
|
||||
output: process.stdout,
|
||||
tty: require('tty')
|
||||
tty: require("tty"),
|
||||
};
|
||||
|
||||
if (!options) {
|
||||
@@ -23,7 +23,7 @@ function normalizeOpts(options) {
|
||||
}
|
||||
|
||||
function cliWidth(options) {
|
||||
var opts = normalizeOpts(options);
|
||||
let opts = normalizeOpts(options);
|
||||
|
||||
if (opts.output.getWindowSize) {
|
||||
return opts.output.getWindowSize()[0] || opts.defaultWidth;
|
||||
@@ -38,7 +38,7 @@ function cliWidth(options) {
|
||||
}
|
||||
|
||||
if (process.env.CLI_WIDTH) {
|
||||
var width = parseInt(process.env.CLI_WIDTH, 10);
|
||||
let width = parseInt(process.env.CLI_WIDTH, 10);
|
||||
|
||||
if (!isNaN(width) && width !== 0) {
|
||||
return width;
|
||||
@@ -46,4 +46,4 @@ function cliWidth(options) {
|
||||
}
|
||||
|
||||
return opts.defaultWidth;
|
||||
};
|
||||
}
|
||||
|
||||
66
node_modules/cli-width/package.json
generated
vendored
66
node_modules/cli-width/package.json
generated
vendored
@@ -1,60 +1,32 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"cli-width@2.2.1",
|
||||
"F:\\laragon\\www\\wishthis"
|
||||
]
|
||||
],
|
||||
"_from": "cli-width@2.2.1",
|
||||
"_id": "cli-width@2.2.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw==",
|
||||
"_location": "/cli-width",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "cli-width@2.2.1",
|
||||
"name": "cli-width",
|
||||
"escapedName": "cli-width",
|
||||
"rawSpec": "2.2.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "2.2.1"
|
||||
"name": "cli-width",
|
||||
"version": "3.0.0",
|
||||
"description": "Get stdout window width, with two fallbacks, tty and then a default.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "node test | tspec",
|
||||
"coverage": "nyc node test | tspec",
|
||||
"coveralls": "npm run coverage -s && coveralls < coverage/lcov.info",
|
||||
"release": "standard-version"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/inquirer"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.1.tgz",
|
||||
"_spec": "2.2.1",
|
||||
"_where": "F:\\laragon\\www\\wishthis",
|
||||
"author": {
|
||||
"name": "Ilya Radchenko",
|
||||
"email": "knownasilya@gmail.com"
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git@github.com:knownasilya/cli-width.git"
|
||||
},
|
||||
"author": "Ilya Radchenko <knownasilya@gmail.com>",
|
||||
"license": "ISC",
|
||||
"bugs": {
|
||||
"url": "https://github.com/knownasilya/cli-width/issues"
|
||||
},
|
||||
"description": "Get stdout window width, with two fallbacks, tty and then a default.",
|
||||
"homepage": "https://github.com/knownasilya/cli-width",
|
||||
"engines": {
|
||||
"node": ">= 10"
|
||||
},
|
||||
"devDependencies": {
|
||||
"coveralls": "^3.0.11",
|
||||
"nyc": "^15.0.1",
|
||||
"standard-version": "^7.1.0",
|
||||
"tap-spec": "^5.0.0",
|
||||
"tape": "^4.13.2"
|
||||
},
|
||||
"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": "nyc node test | tspec",
|
||||
"coveralls": "npm run coverage -s && coveralls < coverage/lcov.info",
|
||||
"release": "standard-version",
|
||||
"test": "node test | tspec"
|
||||
},
|
||||
"version": "2.2.1"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user