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

35
node_modules/win-release/index.js generated vendored Normal file
View File

@@ -0,0 +1,35 @@
'use strict';
var os = require('os');
var semver = require('semver');
var nameMap = {
'10.0': '10',
'6.3': '8.1',
'6.2': '8',
'6.1': '7',
'6.0': 'Vista',
'5.1': 'XP',
'5.0': '2000',
'4.9': 'ME',
'4.1': '98',
'4.0': '95'
};
module.exports = function (release) {
var verRe = /\d+\.\d+/;
var version = verRe.exec(release || os.release());
// workaround for Windows 10 on node < 3.1.0
if (!release && process.platform === 'win32' &&
semver.satisfies(process.version, '>=0.12.0 <3.1.0')) {
try {
version = verRe.exec(String(require('child_process').execSync('ver.exe', {timeout: 2000})));
} catch (err) {}
}
if (release && !version) {
throw new Error('`release` argument doesn\'t match `n.n`');
}
return nameMap[(version || [])[0]];
};

21
node_modules/win-release/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.

96
node_modules/win-release/package.json generated vendored Normal file
View File

@@ -0,0 +1,96 @@
{
"_args": [
[
"win-release@^1.0.0",
"/home/bernhard/freifunk-app/node_modules/os-name"
]
],
"_from": "win-release@>=1.0.0 <2.0.0",
"_id": "win-release@1.1.1",
"_inCache": true,
"_installable": true,
"_location": "/win-release",
"_nodeVersion": "4.0.0",
"_npmUser": {
"email": "sindresorhus@gmail.com",
"name": "sindresorhus"
},
"_npmVersion": "2.14.2",
"_phantomChildren": {},
"_requested": {
"name": "win-release",
"raw": "win-release@^1.0.0",
"rawSpec": "^1.0.0",
"scope": null,
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/os-name"
],
"_resolved": "https://registry.npmjs.org/win-release/-/win-release-1.1.1.tgz",
"_shasum": "5fa55e02be7ca934edfc12665632e849b72e5209",
"_shrinkwrap": null,
"_spec": "win-release@^1.0.0",
"_where": "/home/bernhard/freifunk-app/node_modules/os-name",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/win-release/issues"
},
"dependencies": {
"semver": "^5.0.1"
},
"description": "Get the name of a Windows version from the release number: 5.1.2600 → XP",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"directories": {},
"dist": {
"shasum": "5fa55e02be7ca934edfc12665632e849b72e5209",
"tarball": "https://registry.npmjs.org/win-release/-/win-release-1.1.1.tgz"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"gitHead": "426c5d3dba12c7495cfda699cf614f4d8ea8fd3d",
"homepage": "https://github.com/sindresorhus/win-release#readme",
"keywords": [
"name",
"operating",
"os",
"platform",
"release",
"system",
"title",
"version",
"win",
"win32",
"windows"
],
"license": "MIT",
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"name": "win-release",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/win-release.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "1.1.1"
}

54
node_modules/win-release/readme.md generated vendored Normal file
View File

@@ -0,0 +1,54 @@
# win-release [![Build Status](https://travis-ci.org/sindresorhus/win-release.svg?branch=master)](https://travis-ci.org/sindresorhus/win-release)
> Get the name of a Windows version from the release number: `5.1.2600` → `XP`
## Install
```
$ npm install --save win-release
```
## Usage
```js
var os = require('os');
var winRelease = require('win-release');
// on a Windows XP system
winRelease();
//=> 'XP'
os.release();
//=> '5.1.2600'
winRelease(os.release());
//=> 'XP'
winRelease('4.9.3000');
//=> 'ME'
```
## API
### winRelease([release])
#### release
Type: `string`
By default the current OS is used, but you can supply a custom release number, which is the output of [`os.release()`](http://nodejs.org/api/os.html#os_os_release).
## Related
- [os-name](https://github.com/sindresorhus/os-name) - Get the name of the current operating system
- [osx-release](https://github.com/sindresorhus/osx-release) - Get the name and version of a OS X release from the Darwin version
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)