Updated the Survey.
This commit is contained in:
parent
f59686eae0
commit
6d3ba1a714
1203 changed files with 140782 additions and 5 deletions
21
node_modules/term-size/index.d.ts
generated
vendored
Normal file
21
node_modules/term-size/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
declare namespace terminalSize {
|
||||
interface Size {
|
||||
columns: number;
|
||||
rows: number;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
Reliably get the terminal window size.
|
||||
|
||||
@example
|
||||
```
|
||||
import terminalSize = require('term-size');
|
||||
|
||||
terminalSize();
|
||||
//=> {columns: 143, rows: 24}
|
||||
```
|
||||
*/
|
||||
declare function terminalSize(): terminalSize.Size;
|
||||
|
||||
export = terminalSize;
|
72
node_modules/term-size/index.js
generated
vendored
Normal file
72
node_modules/term-size/index.js
generated
vendored
Normal file
|
@ -0,0 +1,72 @@
|
|||
'use strict';
|
||||
const {execFileSync} = require('child_process');
|
||||
const path = require('path');
|
||||
|
||||
const exec = (command, arguments_, shell) => execFileSync(command, arguments_, {encoding: 'utf8', shell}).trim();
|
||||
|
||||
const create = (columns, rows) => ({
|
||||
columns: parseInt(columns, 10),
|
||||
rows: parseInt(rows, 10)
|
||||
});
|
||||
|
||||
module.exports = () => {
|
||||
const {env, stdout, stderr} = process;
|
||||
|
||||
if (stdout && stdout.columns && stdout.rows) {
|
||||
return create(stdout.columns, stdout.rows);
|
||||
}
|
||||
|
||||
if (stderr && stderr.columns && stderr.rows) {
|
||||
return create(stderr.columns, stderr.rows);
|
||||
}
|
||||
|
||||
// These values are static, so not the first choice
|
||||
if (env.COLUMNS && env.LINES) {
|
||||
return create(env.COLUMNS, env.LINES);
|
||||
}
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
try {
|
||||
// Binary: https://github.com/sindresorhus/win-term-size
|
||||
const size = exec(path.join(__dirname, 'vendor/windows/term-size.exe')).split(/\r?\n/);
|
||||
|
||||
if (size.length === 2) {
|
||||
return create(size[0], size[1]);
|
||||
}
|
||||
} catch (_) {}
|
||||
} else {
|
||||
if (process.platform === 'darwin') {
|
||||
try {
|
||||
// Binary: https://github.com/sindresorhus/macos-term-size
|
||||
const size = exec(path.join(__dirname, 'vendor/macos/term-size'), [], true).split(/\r?\n/);
|
||||
|
||||
if (size.length === 2) {
|
||||
return create(size[0], size[1]);
|
||||
}
|
||||
} catch (_) {}
|
||||
}
|
||||
|
||||
// `resize` is preferred as it works even when all file descriptors are redirected
|
||||
// https://linux.die.net/man/1/resize
|
||||
try {
|
||||
const size = exec('resize', ['-u']).match(/\d+/g);
|
||||
|
||||
if (size.length === 2) {
|
||||
return create(size[0], size[1]);
|
||||
}
|
||||
} catch (_) {}
|
||||
|
||||
if (process.env.TERM) {
|
||||
try {
|
||||
const columns = exec('tput', ['cols']);
|
||||
const rows = exec('tput', ['lines']);
|
||||
|
||||
if (columns && rows) {
|
||||
return create(columns, rows);
|
||||
}
|
||||
} catch (_) {}
|
||||
}
|
||||
}
|
||||
|
||||
return create(80, 24);
|
||||
};
|
9
node_modules/term-size/license
generated
vendored
Normal file
9
node_modules/term-size/license
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
75
node_modules/term-size/package.json
generated
vendored
Normal file
75
node_modules/term-size/package.json
generated
vendored
Normal file
|
@ -0,0 +1,75 @@
|
|||
{
|
||||
"_from": "term-size@^2.1.0",
|
||||
"_id": "term-size@2.2.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==",
|
||||
"_location": "/term-size",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "term-size@^2.1.0",
|
||||
"name": "term-size",
|
||||
"escapedName": "term-size",
|
||||
"rawSpec": "^2.1.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^2.1.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/boxen"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.1.tgz",
|
||||
"_shasum": "2a6a54840432c2fb6320fea0f415531e90189f54",
|
||||
"_spec": "term-size@^2.1.0",
|
||||
"_where": "D:\\Documents\\UniWork\\Year 4\\Semester 2\\SEG3125\\Labs\\Lab 6\\Survey_Analysis\\node_modules\\boxen",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "https://sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/term-size/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "Reliably get the terminal window size (columns & rows)",
|
||||
"devDependencies": {
|
||||
"ava": "^2.4.0",
|
||||
"execa": "^3.4.0",
|
||||
"tsd": "^0.11.0",
|
||||
"xo": "^0.25.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts",
|
||||
"vendor"
|
||||
],
|
||||
"funding": "https://github.com/sponsors/sindresorhus",
|
||||
"homepage": "https://github.com/sindresorhus/term-size#readme",
|
||||
"keywords": [
|
||||
"terminal",
|
||||
"size",
|
||||
"console",
|
||||
"window",
|
||||
"width",
|
||||
"height",
|
||||
"columns",
|
||||
"rows",
|
||||
"lines",
|
||||
"tty",
|
||||
"redirected"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "term-size",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/term-size.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"version": "2.2.1"
|
||||
}
|
48
node_modules/term-size/readme.md
generated
vendored
Normal file
48
node_modules/term-size/readme.md
generated
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
# term-size [](https://travis-ci.com/github/sindresorhus/term-size)
|
||||
|
||||
> Reliably get the terminal window size
|
||||
|
||||
Because [`process.stdout.columns`](https://nodejs.org/api/tty.html#tty_writestream_columns) doesn't exist when run [non-interactively](http://www.tldp.org/LDP/abs/html/intandnonint.html), for example, in a child process or when piped. This module even works when all the TTY file descriptors are redirected!
|
||||
|
||||
Confirmed working on macOS, Linux, and Windows.
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install term-size
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const termSize = require('term-size');
|
||||
|
||||
termSize();
|
||||
//=> {columns: 143, rows: 24}
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### termSize()
|
||||
|
||||
Returns an `object` with `columns` and `rows` properties.
|
||||
|
||||
## Info
|
||||
|
||||
The bundled macOS binary is signed and hardened.
|
||||
|
||||
## Related
|
||||
|
||||
- [term-size-cli](https://github.com/sindresorhus/term-size-cli) - CLI for this module
|
||||
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
<b>
|
||||
<a href="https://tidelift.com/subscription/pkg/npm-term-size?utm_source=npm-term-size&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
|
||||
</b>
|
||||
<br>
|
||||
<sub>
|
||||
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
|
||||
</sub>
|
||||
</div>
|
BIN
node_modules/term-size/vendor/.DS_Store
generated
vendored
Normal file
BIN
node_modules/term-size/vendor/.DS_Store
generated
vendored
Normal file
Binary file not shown.
BIN
node_modules/term-size/vendor/macos/.DS_Store
generated
vendored
Normal file
BIN
node_modules/term-size/vendor/macos/.DS_Store
generated
vendored
Normal file
Binary file not shown.
BIN
node_modules/term-size/vendor/macos/term-size
generated
vendored
Normal file
BIN
node_modules/term-size/vendor/macos/term-size
generated
vendored
Normal file
Binary file not shown.
BIN
node_modules/term-size/vendor/windows/term-size.exe
generated
vendored
Normal file
BIN
node_modules/term-size/vendor/windows/term-size.exe
generated
vendored
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue