Updated the Survey.
This commit is contained in:
parent
f59686eae0
commit
6d3ba1a714
1203 changed files with 140782 additions and 5 deletions
81
node_modules/xdg-basedir/index.d.ts
generated
vendored
Normal file
81
node_modules/xdg-basedir/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,81 @@
|
|||
declare const xdgBasedir: {
|
||||
/**
|
||||
Directory for user-specific data files.
|
||||
|
||||
@example
|
||||
```js
|
||||
import xdgBasedir = require('xdg-basedir');
|
||||
|
||||
xdgBasedir.data;
|
||||
//=> '/home/sindresorhus/.local/share'
|
||||
```
|
||||
*/
|
||||
readonly data?: string;
|
||||
|
||||
/**
|
||||
Directory for user-specific configuration files.
|
||||
|
||||
@example
|
||||
```js
|
||||
import xdgBasedir = require('xdg-basedir');
|
||||
|
||||
xdgBasedir.config;
|
||||
//=> '/home/sindresorhus/.config'
|
||||
```
|
||||
*/
|
||||
readonly config?: string;
|
||||
|
||||
/**
|
||||
Directory for user-specific non-essential data files.
|
||||
|
||||
@example
|
||||
```js
|
||||
import xdgBasedir = require('xdg-basedir');
|
||||
|
||||
xdgBasedir.cache;
|
||||
//=> '/home/sindresorhus/.cache'
|
||||
```
|
||||
*/
|
||||
readonly cache?: string;
|
||||
|
||||
/**
|
||||
Directory for user-specific non-essential runtime files and other file objects (such as sockets, named pipes, etc).
|
||||
|
||||
@example
|
||||
```js
|
||||
import xdgBasedir = require('xdg-basedir');
|
||||
|
||||
xdgBasedir.runtime;
|
||||
//=> '/run/user/sindresorhus'
|
||||
```
|
||||
*/
|
||||
readonly runtime?: string;
|
||||
|
||||
/**
|
||||
Preference-ordered array of base directories to search for data files in addition to `.data`.
|
||||
|
||||
@example
|
||||
```js
|
||||
import xdgBasedir = require('xdg-basedir');
|
||||
|
||||
xdgBasedir.dataDirs
|
||||
//=> ['/home/sindresorhus/.local/share', '/usr/local/share/', '/usr/share/']
|
||||
```
|
||||
*/
|
||||
readonly dataDirs: readonly string[];
|
||||
|
||||
/**
|
||||
Preference-ordered array of base directories to search for configuration files in addition to `.config`.
|
||||
|
||||
@example
|
||||
```js
|
||||
import xdgBasedir = require('xdg-basedir');
|
||||
|
||||
xdgBasedir.configDirs;
|
||||
//=> ['/home/sindresorhus/.config', '/etc/xdg']
|
||||
```
|
||||
*/
|
||||
readonly configDirs: readonly string[];
|
||||
};
|
||||
|
||||
export = xdgBasedir;
|
28
node_modules/xdg-basedir/index.js
generated
vendored
Normal file
28
node_modules/xdg-basedir/index.js
generated
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
'use strict';
|
||||
const os = require('os');
|
||||
const path = require('path');
|
||||
|
||||
const homeDirectory = os.homedir();
|
||||
const {env} = process;
|
||||
|
||||
exports.data = env.XDG_DATA_HOME ||
|
||||
(homeDirectory ? path.join(homeDirectory, '.local', 'share') : undefined);
|
||||
|
||||
exports.config = env.XDG_CONFIG_HOME ||
|
||||
(homeDirectory ? path.join(homeDirectory, '.config') : undefined);
|
||||
|
||||
exports.cache = env.XDG_CACHE_HOME || (homeDirectory ? path.join(homeDirectory, '.cache') : undefined);
|
||||
|
||||
exports.runtime = env.XDG_RUNTIME_DIR || undefined;
|
||||
|
||||
exports.dataDirs = (env.XDG_DATA_DIRS || '/usr/local/share/:/usr/share/').split(':');
|
||||
|
||||
if (exports.data) {
|
||||
exports.dataDirs.unshift(exports.data);
|
||||
}
|
||||
|
||||
exports.configDirs = (env.XDG_CONFIG_DIRS || '/etc/xdg').split(':');
|
||||
|
||||
if (exports.config) {
|
||||
exports.configDirs.unshift(exports.config);
|
||||
}
|
9
node_modules/xdg-basedir/license
generated
vendored
Normal file
9
node_modules/xdg-basedir/license
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (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.
|
74
node_modules/xdg-basedir/package.json
generated
vendored
Normal file
74
node_modules/xdg-basedir/package.json
generated
vendored
Normal file
|
@ -0,0 +1,74 @@
|
|||
{
|
||||
"_from": "xdg-basedir@^4.0.0",
|
||||
"_id": "xdg-basedir@4.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==",
|
||||
"_location": "/xdg-basedir",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "xdg-basedir@^4.0.0",
|
||||
"name": "xdg-basedir",
|
||||
"escapedName": "xdg-basedir",
|
||||
"rawSpec": "^4.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^4.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/configstore",
|
||||
"/update-notifier"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz",
|
||||
"_shasum": "4bc8d9984403696225ef83a1573cbbcb4e79db13",
|
||||
"_spec": "xdg-basedir@^4.0.0",
|
||||
"_where": "D:\\Documents\\UniWork\\Year 4\\Semester 2\\SEG3125\\Labs\\Lab 6\\Survey_Analysis\\node_modules\\update-notifier",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/xdg-basedir/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "Get XDG Base Directory paths",
|
||||
"devDependencies": {
|
||||
"ava": "^1.4.1",
|
||||
"import-fresh": "^3.0.0",
|
||||
"tsd": "^0.7.2",
|
||||
"xo": "^0.24.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/xdg-basedir#readme",
|
||||
"keywords": [
|
||||
"xdg",
|
||||
"base",
|
||||
"directory",
|
||||
"basedir",
|
||||
"path",
|
||||
"data",
|
||||
"config",
|
||||
"cache",
|
||||
"linux",
|
||||
"unix",
|
||||
"spec"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "xdg-basedir",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/xdg-basedir.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"version": "4.0.0"
|
||||
}
|
60
node_modules/xdg-basedir/readme.md
generated
vendored
Normal file
60
node_modules/xdg-basedir/readme.md
generated
vendored
Normal file
|
@ -0,0 +1,60 @@
|
|||
# xdg-basedir [](https://travis-ci.org/sindresorhus/xdg-basedir)
|
||||
|
||||
> Get [XDG Base Directory](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html) paths
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install xdg-basedir
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const xdgBasedir = require('xdg-basedir');
|
||||
|
||||
xdgBasedir.data;
|
||||
//=> '/home/sindresorhus/.local/share'
|
||||
|
||||
xdgBasedir.config;
|
||||
//=> '/home/sindresorhus/.config'
|
||||
|
||||
xdgBasedir.dataDirs
|
||||
//=> ['/home/sindresorhus/.local/share', '/usr/local/share/', '/usr/share/']
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
The properties `.data`, `.config`, `.cache`, `.runtime` will return `null` in the uncommon case that both the XDG environment variable is not set and the users home directory can't be found. You need to handle this case. A common solution is to [fall back to a temp directory](https://github.com/yeoman/configstore/blob/b82690fc401318ad18dcd7d151a0003a4898a314/index.js#L15).
|
||||
|
||||
### .data
|
||||
|
||||
Directory for user-specific data files.
|
||||
|
||||
### .config
|
||||
|
||||
Directory for user-specific configuration files.
|
||||
|
||||
### .cache
|
||||
|
||||
Directory for user-specific non-essential data files.
|
||||
|
||||
### .runtime
|
||||
|
||||
Directory for user-specific non-essential runtime files and other file objects (such as sockets, named pipes, etc).
|
||||
|
||||
### .dataDirs
|
||||
|
||||
Preference-ordered array of base directories to search for data files in addition to `.data`.
|
||||
|
||||
### .configDirs
|
||||
|
||||
Preference-ordered array of base directories to search for configuration files in addition to `.config`.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
Loading…
Add table
Add a link
Reference in a new issue