initial commit taken from gitlab.lrz.de

This commit is contained in:
privatereese
2018-08-24 18:09:42 +02:00
parent ae54ed4c48
commit fc05486403
28494 changed files with 2159823 additions and 0 deletions

33
node_modules/os-name/index.js generated vendored Normal file
View File

@@ -0,0 +1,33 @@
'use strict';
var os = require('os');
var macosRelease = require('macos-release');
var winRelease = require('win-release');
module.exports = function (platform, release) {
if (!platform && release) {
throw new Error('You can\'t specify a `release` without specifying `platform`');
}
platform = platform || os.platform();
release = release || os.release();
var id;
if (platform === 'darwin') {
var prefix = Number(release.split('.')[0]) > 15 ? 'macOS' : 'OS X';
id = macosRelease(release).name;
return prefix + (id ? ' ' + id : '');
}
if (platform === 'linux') {
id = release.replace(/^(\d+\.\d+).*/, '$1');
return 'Linux' + (id ? ' ' + id : '');
}
if (platform === 'win32') {
id = winRelease(release);
return 'Windows' + (id ? ' ' + id : '');
}
return platform;
};

21
node_modules/os-name/license generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
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.

102
node_modules/os-name/package.json generated vendored Normal file
View File

@@ -0,0 +1,102 @@
{
"_args": [
[
"os-name@^2.0.1",
"/home/bernhard/freifunk-app/node_modules/envinfo"
]
],
"_from": "os-name@>=2.0.1 <3.0.0",
"_id": "os-name@2.0.1",
"_inCache": true,
"_installable": true,
"_location": "/os-name",
"_nodeVersion": "4.4.2",
"_npmOperationalInternal": {
"host": "packages-16-east.internal.npmjs.com",
"tmp": "tmp/os-name-2.0.1.tgz_1466382684023_0.860145166516304"
},
"_npmUser": {
"email": "sindresorhus@gmail.com",
"name": "sindresorhus"
},
"_npmVersion": "2.15.0",
"_phantomChildren": {},
"_requested": {
"name": "os-name",
"raw": "os-name@^2.0.1",
"rawSpec": "^2.0.1",
"scope": null,
"spec": ">=2.0.1 <3.0.0",
"type": "range"
},
"_requiredBy": [
"/envinfo"
],
"_resolved": "https://registry.npmjs.org/os-name/-/os-name-2.0.1.tgz",
"_shasum": "b9a386361c17ae3a21736ef0599405c9a8c5dc5e",
"_shrinkwrap": null,
"_spec": "os-name@^2.0.1",
"_where": "/home/bernhard/freifunk-app/node_modules/envinfo",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/os-name/issues"
},
"dependencies": {
"macos-release": "^1.0.0",
"win-release": "^1.0.0"
},
"description": "Get the name of the current operating system. Example: macOS Sierra",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"directories": {},
"dist": {
"shasum": "b9a386361c17ae3a21736ef0599405c9a8c5dc5e",
"tarball": "https://registry.npmjs.org/os-name/-/os-name-2.0.1.tgz"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"gitHead": "c4903a345f3921e9a500dd3a2704d2f1ca43ecd1",
"homepage": "https://github.com/sindresorhus/os-name#readme",
"keywords": [
"linux",
"macos",
"name",
"operating",
"os",
"osx",
"platform",
"release",
"system",
"title",
"version",
"windows"
],
"license": "MIT",
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"name": "os-name",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/os-name.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "2.0.1"
}

64
node_modules/os-name/readme.md generated vendored Normal file
View File

@@ -0,0 +1,64 @@
# os-name [![Build Status](https://travis-ci.org/sindresorhus/os-name.svg?branch=master)](https://travis-ci.org/sindresorhus/os-name)
> Get the name of the current operating system<br>
> Example: `macOS Sierra`
Useful for analytics and debugging.
## Install
```
$ npm install --save os-name
```
## Usage
```js
const os = require('os');
const osName = require('os-name');
// on a macOS Sierra system
osName();
//=> 'macOS Sierra'
osName(os.platform(), os.release());
//=> 'macOS Sierra'
osName('darwin', '14.0.0');
//=> 'OS X Yosemite'
osName('linux', '3.13.0-24-generic');
//=> 'Linux 3.13'
osName('win32', '6.3.9600');
//=> 'Windows 8.1'
```
## API
### osName([platform, release])
By default the name of the current operating system is returned.
You can optionally supply a custom [`os.platform()`](http://nodejs.org/api/os.html#os_os_platform) and [`os.release()`](http://nodejs.org/api/os.html#os_os_release).
Check out [getos](https://github.com/wblankenship/getos) if you need the Linux distribution name.
## Contributing
Production systems depend on this package for logging / tracking. Please be careful when introducing new output, and adhere to existing output format (whitespace, capitalization, etc.).
## Related
- [os-name-cli](https://github.com/sindresorhus/os-name-cli) - CLI for this module
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)