aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/cli-width
diff options
context:
space:
mode:
authorDanijel Andjelkovic <adanijel99@gmail.com>2022-03-01 21:54:41 +0100
committerDanijel Andjelkovic <adanijel99@gmail.com>2022-03-01 21:54:41 +0100
commit6c8128f9fd5a5d0be115806c35a21b3d683df8d6 (patch)
treef46c2f6b3b9b294ff32bd75c08ccdc9e7a8cc4ef /sandbox/testAppNevena/Front/node_modules/cli-width
parent2400b84e95913665da6279114168148444b8f9ab (diff)
parent7d3640f824f46490b47bd95f1c5a16644f712068 (diff)
Merge branch 'dev' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into logo
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/cli-width')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/cli-width/.nyc_output/00ef1b3d-3687-482b-8d03-de2f76b58f54.json1
-rw-r--r--sandbox/testAppNevena/Front/node_modules/cli-width/.nyc_output/processinfo/00ef1b3d-3687-482b-8d03-de2f76b58f54.json1
-rw-r--r--sandbox/testAppNevena/Front/node_modules/cli-width/.nyc_output/processinfo/index.json1
-rw-r--r--sandbox/testAppNevena/Front/node_modules/cli-width/.travis.yml7
-rw-r--r--sandbox/testAppNevena/Front/node_modules/cli-width/CHANGELOG.md37
-rw-r--r--sandbox/testAppNevena/Front/node_modules/cli-width/LICENSE13
-rw-r--r--sandbox/testAppNevena/Front/node_modules/cli-width/README.md72
-rw-r--r--sandbox/testAppNevena/Front/node_modules/cli-width/index.js49
-rw-r--r--sandbox/testAppNevena/Front/node_modules/cli-width/package.json32
9 files changed, 213 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/cli-width/.nyc_output/00ef1b3d-3687-482b-8d03-de2f76b58f54.json b/sandbox/testAppNevena/Front/node_modules/cli-width/.nyc_output/00ef1b3d-3687-482b-8d03-de2f76b58f54.json
new file mode 100644
index 00000000..c275decd
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/cli-width/.nyc_output/00ef1b3d-3687-482b-8d03-de2f76b58f54.json
@@ -0,0 +1 @@
+{"/Users/ilya/maintained/cli-width/index.js":{"path":"/Users/ilya/maintained/cli-width/index.js","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":3,"column":36}},"1":{"start":{"line":6,"column":20},"end":{"line":10,"column":3}},"2":{"start":{"line":12,"column":2},"end":{"line":14,"column":3}},"3":{"start":{"line":13,"column":4},"end":{"line":13,"column":23}},"4":{"start":{"line":16,"column":2},"end":{"line":20,"column":5}},"5":{"start":{"line":17,"column":4},"end":{"line":19,"column":5}},"6":{"start":{"line":18,"column":6},"end":{"line":18,"column":38}},"7":{"start":{"line":22,"column":2},"end":{"line":22,"column":17}},"8":{"start":{"line":26,"column":13},"end":{"line":26,"column":35}},"9":{"start":{"line":28,"column":2},"end":{"line":30,"column":3}},"10":{"start":{"line":29,"column":4},"end":{"line":29,"column":63}},"11":{"start":{"line":32,"column":2},"end":{"line":34,"column":3}},"12":{"start":{"line":33,"column":4},"end":{"line":33,"column":60}},"13":{"start":{"line":36,"column":2},"end":{"line":38,"column":3}},"14":{"start":{"line":37,"column":4},"end":{"line":37,"column":31}},"15":{"start":{"line":40,"column":2},"end":{"line":46,"column":3}},"16":{"start":{"line":41,"column":16},"end":{"line":41,"column":51}},"17":{"start":{"line":43,"column":4},"end":{"line":45,"column":5}},"18":{"start":{"line":44,"column":6},"end":{"line":44,"column":19}},"19":{"start":{"line":48,"column":2},"end":{"line":48,"column":27}}},"fnMap":{"0":{"name":"normalizeOpts","decl":{"start":{"line":5,"column":9},"end":{"line":5,"column":22}},"loc":{"start":{"line":5,"column":32},"end":{"line":23,"column":1}},"line":5},"1":{"name":"(anonymous_1)","decl":{"start":{"line":16,"column":35},"end":{"line":16,"column":36}},"loc":{"start":{"line":16,"column":50},"end":{"line":20,"column":3}},"line":16},"2":{"name":"cliWidth","decl":{"start":{"line":25,"column":9},"end":{"line":25,"column":17}},"loc":{"start":{"line":25,"column":27},"end":{"line":49,"column":1}},"line":25}},"branchMap":{"0":{"loc":{"start":{"line":12,"column":2},"end":{"line":14,"column":3}},"type":"if","locations":[{"start":{"line":12,"column":2},"end":{"line":14,"column":3}},{"start":{"line":12,"column":2},"end":{"line":14,"column":3}}],"line":12},"1":{"loc":{"start":{"line":17,"column":4},"end":{"line":19,"column":5}},"type":"if","locations":[{"start":{"line":17,"column":4},"end":{"line":19,"column":5}},{"start":{"line":17,"column":4},"end":{"line":19,"column":5}}],"line":17},"2":{"loc":{"start":{"line":28,"column":2},"end":{"line":30,"column":3}},"type":"if","locations":[{"start":{"line":28,"column":2},"end":{"line":30,"column":3}},{"start":{"line":28,"column":2},"end":{"line":30,"column":3}}],"line":28},"3":{"loc":{"start":{"line":29,"column":11},"end":{"line":29,"column":62}},"type":"binary-expr","locations":[{"start":{"line":29,"column":11},"end":{"line":29,"column":41}},{"start":{"line":29,"column":45},"end":{"line":29,"column":62}}],"line":29},"4":{"loc":{"start":{"line":32,"column":2},"end":{"line":34,"column":3}},"type":"if","locations":[{"start":{"line":32,"column":2},"end":{"line":34,"column":3}},{"start":{"line":32,"column":2},"end":{"line":34,"column":3}}],"line":32},"5":{"loc":{"start":{"line":33,"column":11},"end":{"line":33,"column":59}},"type":"binary-expr","locations":[{"start":{"line":33,"column":11},"end":{"line":33,"column":38}},{"start":{"line":33,"column":42},"end":{"line":33,"column":59}}],"line":33},"6":{"loc":{"start":{"line":36,"column":2},"end":{"line":38,"column":3}},"type":"if","locations":[{"start":{"line":36,"column":2},"end":{"line":38,"column":3}},{"start":{"line":36,"column":2},"end":{"line":38,"column":3}}],"line":36},"7":{"loc":{"start":{"line":40,"column":2},"end":{"line":46,"column":3}},"type":"if","locations":[{"start":{"line":40,"column":2},"end":{"line":46,"column":3}},{"start":{"line":40,"column":2},"end":{"line":46,"column":3}}],"line":40},"8":{"loc":{"start":{"line":43,"column":4},"end":{"line":45,"column":5}},"type":"if","locations":[{"start":{"line":43,"column":4},"end":{"line":45,"column":5}},{"start":{"line":43,"column":4},"end":{"line":45,"column":5}}],"line":43},"9":{"loc":{"start":{"line":43,"column":8},"end":{"line":43,"column":36}},"type":"binary-expr","locations":[{"start":{"line":43,"column":8},"end":{"line":43,"column":21}},{"start":{"line":43,"column":25},"end":{"line":43,"column":36}}],"line":43}},"s":{"0":1,"1":11,"2":11,"3":5,"4":6,"5":18,"6":12,"7":6,"8":11,"9":11,"10":3,"11":8,"12":3,"13":5,"14":1,"15":4,"16":2,"17":2,"18":1,"19":3},"f":{"0":11,"1":18,"2":11},"b":{"0":[5,6],"1":[12,6],"2":[3,8],"3":[3,1],"4":[3,5],"5":[3,1],"6":[1,4],"7":[2,2],"8":[1,1],"9":[2,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"a4d7f0a30376f059a5bc5bb60422e8b1332adf0c","contentHash":"1ab1e2def09289f7630132524d4d3929b81fe2db9a3f07e64865500b9c42e817"}} \ No newline at end of file
diff --git a/sandbox/testAppNevena/Front/node_modules/cli-width/.nyc_output/processinfo/00ef1b3d-3687-482b-8d03-de2f76b58f54.json b/sandbox/testAppNevena/Front/node_modules/cli-width/.nyc_output/processinfo/00ef1b3d-3687-482b-8d03-de2f76b58f54.json
new file mode 100644
index 00000000..10921d66
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/cli-width/.nyc_output/processinfo/00ef1b3d-3687-482b-8d03-de2f76b58f54.json
@@ -0,0 +1 @@
+{"parent":null,"pid":4489,"argv":["/Users/ilya/.volta/tools/image/node/12.16.0/6.13.4/bin/node","/Users/ilya/maintained/cli-width/test"],"execArgv":[],"cwd":"/Users/ilya/maintained/cli-width","time":1586875876791,"ppid":4487,"coverageFilename":"/Users/ilya/maintained/cli-width/.nyc_output/00ef1b3d-3687-482b-8d03-de2f76b58f54.json","externalId":"","uuid":"00ef1b3d-3687-482b-8d03-de2f76b58f54","files":["/Users/ilya/maintained/cli-width/index.js"]} \ No newline at end of file
diff --git a/sandbox/testAppNevena/Front/node_modules/cli-width/.nyc_output/processinfo/index.json b/sandbox/testAppNevena/Front/node_modules/cli-width/.nyc_output/processinfo/index.json
new file mode 100644
index 00000000..7f9a443d
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/cli-width/.nyc_output/processinfo/index.json
@@ -0,0 +1 @@
+{"processes":{"00ef1b3d-3687-482b-8d03-de2f76b58f54":{"parent":null,"children":[]}},"files":{"/Users/ilya/maintained/cli-width/index.js":["00ef1b3d-3687-482b-8d03-de2f76b58f54"]},"externalIds":{}} \ No newline at end of file
diff --git a/sandbox/testAppNevena/Front/node_modules/cli-width/.travis.yml b/sandbox/testAppNevena/Front/node_modules/cli-width/.travis.yml
new file mode 100644
index 00000000..08efae4a
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/cli-width/.travis.yml
@@ -0,0 +1,7 @@
+language: node_js
+node_js:
+ - "10"
+ - "12"
+ - "node"
+after_script:
+ - npm run coveralls
diff --git a/sandbox/testAppNevena/Front/node_modules/cli-width/CHANGELOG.md b/sandbox/testAppNevena/Front/node_modules/cli-width/CHANGELOG.md
new file mode 100644
index 00000000..6299a624
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/cli-width/CHANGELOG.md
@@ -0,0 +1,37 @@
+# Changelog
+
+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)
+
+
+### Bug Fixes
+
+* add more node versions to travis ([f7bc148](https://github.com/knownasilya/cli-width/commit/f7bc14846c2547769681bfc56afed3d0b04aa11e))
+* Reduce nesting in index.js and add package-lock.json ([#14](https://github.com/knownasilya/cli-width/issues/14)) ([92d8d6b](https://github.com/knownasilya/cli-width/commit/92d8d6b8e4ce3702b12356c5427723005fccf9b8))
+* update deprecated deps and change coverage script ([db06065](https://github.com/knownasilya/cli-width/commit/db0606592f8347eb9f35abdf87c570e1d731463c))
+
+<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)
diff --git a/sandbox/testAppNevena/Front/node_modules/cli-width/LICENSE b/sandbox/testAppNevena/Front/node_modules/cli-width/LICENSE
new file mode 100644
index 00000000..173ed319
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/cli-width/LICENSE
@@ -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.
diff --git a/sandbox/testAppNevena/Front/node_modules/cli-width/README.md b/sandbox/testAppNevena/Front/node_modules/cli-width/README.md
new file mode 100644
index 00000000..26736812
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/cli-width/README.md
@@ -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)
+
+Tested against NodeJS v10+
+
+## Usage
+
+```
+npm install --save cli-width
+```
+
+```js
+"use strict";
+
+const 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
+const cliWidth = require("cli-width");
+const ttys = require("ttys");
+
+cliWidth({
+ defaultWidth: 80,
+ output: ttys.output,
+});
+```
+
+Defines a different tty module to read width from:
+
+```js
+const cliWidth = require("cli-width");
+const ttys = require("ttys");
+
+cliWidth({
+ tty: ttys,
+});
+```
+
+## Tests
+
+```bash
+npm install
+npm test
+```
+
+Coverage can be generated with `npm run coverage`.
diff --git a/sandbox/testAppNevena/Front/node_modules/cli-width/index.js b/sandbox/testAppNevena/Front/node_modules/cli-width/index.js
new file mode 100644
index 00000000..b467e9b8
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/cli-width/index.js
@@ -0,0 +1,49 @@
+"use strict";
+
+exports = module.exports = cliWidth;
+
+function normalizeOpts(options) {
+ let defaultOpts = {
+ defaultWidth: 0,
+ output: process.stdout,
+ tty: require("tty"),
+ };
+
+ if (!options) {
+ return defaultOpts;
+ }
+
+ Object.keys(defaultOpts).forEach(function (key) {
+ if (!options[key]) {
+ options[key] = defaultOpts[key];
+ }
+ });
+
+ return options;
+}
+
+function cliWidth(options) {
+ let opts = normalizeOpts(options);
+
+ if (opts.output.getWindowSize) {
+ return opts.output.getWindowSize()[0] || opts.defaultWidth;
+ }
+
+ if (opts.tty.getWindowSize) {
+ return opts.tty.getWindowSize()[1] || opts.defaultWidth;
+ }
+
+ if (opts.output.columns) {
+ return opts.output.columns;
+ }
+
+ if (process.env.CLI_WIDTH) {
+ let width = parseInt(process.env.CLI_WIDTH, 10);
+
+ if (!isNaN(width) && width !== 0) {
+ return width;
+ }
+ }
+
+ return opts.defaultWidth;
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/cli-width/package.json b/sandbox/testAppNevena/Front/node_modules/cli-width/package.json
new file mode 100644
index 00000000..2b825f28
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/cli-width/package.json
@@ -0,0 +1,32 @@
+{
+ "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"
+ },
+ "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"
+ },
+ "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"
+ }
+}