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

5
node_modules/xpipe/.npmignore generated vendored Normal file
View File

@@ -0,0 +1,5 @@
.editorconfig
_*
*.log

21
node_modules/xpipe/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2016 Michael Kortstiege
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.

78
node_modules/xpipe/README.md generated vendored Normal file
View File

@@ -0,0 +1,78 @@
xpipe<sup>[1]</sup>
===================
Use cross-platform IPC paths in node.
Background
----------
In node - instead of using TCP - you can also take IPC<sup>[2]</sup> to communicate to services like
- web servers (NGINX)
- data structure stores (redis)
- databases (MongoDB, Cassandra)
- etc.
or to interconnect node apps, Electron frontends/backends etc.
**This can lead to large speed gains.**
On unixoid operating systems - e.g. Linux and OS X - we use [Unix domain sockets](https://en.wikipedia.org/wiki/Unix_domain_socket)
that are referred by file descriptors.
Windows has [named pipes](https://en.wikipedia.org/wiki/Named_pipe) for it, living
in the root directory of the NPFS<sup>[3]</sup>, mounted under the special path \\\\.\\pipe\\.
**To mitigate these differences and to to support writing portable code, xpipe was born...**
Installation
------------
npm install xpipe
Usage
-----
```javascript
const xpipe = require('xpipe');
let prefix = xpipe.prefix;
console.log( `prefix: ${prefix}` );
/*
[empty string] on Linux and OS X
"//./pipe/" on Windows
*/
let ipcPath = xpipe.eq('/tmp/my.sock');
console.log( `ipcPath: ${ipcPath}` );
/*
"/tmp/my.sock" on Linux and OS X
"//./pipe/tmp/my.sock" on Windows
*/
```
When did Windows start accepting forward slash as a path separator?
-------------------------------------------------------------------
Every Windows API/kernel ever has accepted "/" as a path separator.
So has every version of MS-DOS beginning with DOS 2.0 (the first version
to support subdirectories).
It's only been in command lines that "/" was not allowed when it had
already been used as a switch delimiter in MS-DOS 1.0 (introduced by IBM).
This behaviour could be bypassed (at least on modern Windows systems) by including
the path in double quotation marks:
- **cd c:/Windows** and **cd /Windows** work<sup>[4]</sup>
- **dir ./ /B** fails but **dir "./" /B** works
Further articles:
- https://en.m.wikipedia.org/wiki/Path_(computing)
<p>&nbsp;</p>
[1]: xpipe stands for **xp (cross-platform) IPC path equalizer**
[2]: inter-process communication, see https://en.wikipedia.org/wiki/Inter-process_communication
[3]: named pipe file system (in-memory)
[4]: on Windows "/" without a leading drive letter represents the root of the current drive

32
node_modules/xpipe/index.js generated vendored Normal file
View File

@@ -0,0 +1,32 @@
'use strict';
/**
* Xpipe - class consisting of only static methods
* @class
*/
class Xpipe {
/**
* Return a cross-platform IPC path
* @return {string}
*/
static eq(path) {
const prefix = Xpipe.prefix;
if (prefix.endsWith('/') && path.startsWith('/')) {
return prefix + path.substr(1);
}
return prefix + path;
}
/**
* Returns the prefix on Windows and empty string otherwise
* @return {string}
*/
static get prefix() {
return process.platform === 'win32' ? '//./pipe/' : '';
}
}
module.exports = Xpipe;

84
node_modules/xpipe/package.json generated vendored Normal file
View File

@@ -0,0 +1,84 @@
{
"_args": [
[
"xpipe@^1.0.5",
"/home/bernhard/freifunk-app/node_modules/metro"
]
],
"_from": "xpipe@>=1.0.5 <2.0.0",
"_id": "xpipe@1.0.5",
"_inCache": true,
"_installable": true,
"_location": "/xpipe",
"_nodeVersion": "6.3.1",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/xpipe-1.0.5.tgz_1473099113821_0.5368920692708343"
},
"_npmUser": {
"email": "mk@nodexo.de",
"name": "nodexo"
},
"_npmVersion": "3.10.3",
"_phantomChildren": {},
"_requested": {
"name": "xpipe",
"raw": "xpipe@^1.0.5",
"rawSpec": "^1.0.5",
"scope": null,
"spec": ">=1.0.5 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/metro"
],
"_resolved": "https://registry.npmjs.org/xpipe/-/xpipe-1.0.5.tgz",
"_shasum": "8dd8bf45fc3f7f55f0e054b878f43a62614dafdf",
"_shrinkwrap": null,
"_spec": "xpipe@^1.0.5",
"_where": "/home/bernhard/freifunk-app/node_modules/metro",
"author": {
"name": "Michael Kortstiege"
},
"bugs": {
"url": "https://github.com/nodexo/xpipe/issues"
},
"dependencies": {},
"description": "Use cross-platform IPC paths in node.",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "8dd8bf45fc3f7f55f0e054b878f43a62614dafdf",
"tarball": "https://registry.npmjs.org/xpipe/-/xpipe-1.0.5.tgz"
},
"gitHead": "8cc87189946b94cacb057f33a55c50eeb4906289",
"homepage": "https://github.com/nodexo/xpipe#readme",
"keywords": [
"cross platform",
"ipc",
"named pipes",
"path",
"sockets",
"unix",
"windows"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "nodexo",
"email": "mk@nodexo.de"
}
],
"name": "xpipe",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/nodexo/xpipe.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "1.0.5"
}