Galerie und tage

This commit is contained in:
2021-11-23 17:56:26 +01:00
parent ff35366279
commit 5f873bee89
4693 changed files with 149659 additions and 301447 deletions

48
node_modules/bin-check/index.js generated vendored
View File

@@ -1,31 +1,29 @@
'use strict';
const execa = require('execa');
const executable = require('executable');
var spawn = require('child_process').spawn;
var executable = require('executable');
module.exports = (bin, args) => {
if (!Array.isArray(args)) {
args = ['--help'];
module.exports = function (bin, cmd, cb) {
if (typeof cmd === 'function') {
cb = cmd;
cmd = ['--help'];
}
return executable(bin)
.then(works => {
if (!works) {
throw new Error(`Couldn't execute the \`${bin}\` binary. Make sure it has the right permissions.`);
}
executable(bin, function (err, works) {
if (err) {
cb(err);
return;
}
return execa(bin, args);
})
.then(res => res.code === 0);
};
module.exports.sync = (bin, args) => {
if (!Array.isArray(args)) {
args = ['--help'];
}
if (!executable.sync(bin)) {
throw new Error(`Couldn't execute the \`${bin}\` binary. Make sure it has the right permissions.`);
}
return execa.sync(bin, args).status === 0;
if (!works) {
cb(new Error('Couldn\'t execute the `' + bin + '` binary. Make sure it has the right permissions.'));
return;
}
var cp = spawn(bin, cmd);
cp.on('error', cb);
cp.on('exit', function (code) {
cb(null, code === 0);
});
});
};

2
node_modules/bin-check/license generated vendored
View File

@@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) Kevin Mårtensson <kevinmartensson@gmail.com> (github.com/kevva)
Copyright (c) Kevin Mårtensson <kevinmartensson@gmail.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

71
node_modules/bin-check/package.json generated vendored
View File

@@ -1,76 +1,33 @@
{
"_from": "bin-check@^4.1.0",
"_id": "bin-check@4.1.0",
"_inBundle": false,
"_integrity": "sha512-b6weQyEUKsDGFlACWSIOfveEnImkJyK/FGW6FAG42loyoquvjdtOIqO6yBFzHyqyVVhNgNkQxxx09SFLK28YnA==",
"_location": "/bin-check",
"_phantomChildren": {
"is-stream": "1.1.0",
"lru-cache": "4.1.5",
"npm-run-path": "2.0.2",
"p-finally": "1.0.0",
"shebang-command": "1.2.0",
"signal-exit": "3.0.3",
"strip-eof": "1.0.0",
"which": "1.3.1"
},
"_requested": {
"type": "range",
"registry": true,
"raw": "bin-check@^4.1.0",
"name": "bin-check",
"escapedName": "bin-check",
"rawSpec": "^4.1.0",
"saveSpec": null,
"fetchSpec": "^4.1.0"
},
"_requiredBy": [
"/bin-wrapper"
],
"_resolved": "https://registry.npmjs.org/bin-check/-/bin-check-4.1.0.tgz",
"_shasum": "fc495970bdc88bb1d5a35fc17e65c4a149fc4a49",
"_spec": "bin-check@^4.1.0",
"_where": "/var/www/html/jason/WeihnachtenMelly/node_modules/bin-wrapper",
"name": "bin-check",
"version": "2.0.0",
"description": "Check if a binary is working",
"license": "MIT",
"repository": "kevva/bin-check",
"author": {
"name": "Kevin Mårtensson",
"email": "kevinmartensson@gmail.com",
"url": "https://github.com/kevva"
},
"bugs": {
"url": "https://github.com/kevva/bin-check/issues"
},
"bundleDependencies": false,
"dependencies": {
"execa": "^0.7.0",
"executable": "^4.1.0"
},
"deprecated": false,
"description": "Check if a binary is working",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"engines": {
"node": ">=4"
"node": ">=0.10.0"
},
"scripts": {
"test": "node test/test.js"
},
"files": [
"index.js"
],
"homepage": "https://github.com/kevva/bin-check#readme",
"keywords": [
"binary",
"check",
"executable",
"test"
],
"license": "MIT",
"name": "bin-check",
"repository": {
"type": "git",
"url": "git+https://github.com/kevva/bin-check.git"
"dependencies": {
"executable": "^1.0.0"
},
"scripts": {
"test": "xo && ava"
},
"version": "4.1.0"
"devDependencies": {
"ava": "^0.0.4"
}
}

26
node_modules/bin-check/readme.md generated vendored
View File

@@ -6,16 +6,16 @@
## Install
```
$ npm install bin-check
$ npm install --save bin-check
```
## Usage
```js
const binCheck = require('bin-check');
var binCheck = require('bin-check');
binCheck('/bin/sh', ['--version']).then(works => {
binCheck('/bin/sh', ['--version'], function (err, works) {
console.log(works);
//=> true
});
@@ -24,13 +24,7 @@ binCheck('/bin/sh', ['--version']).then(works => {
## API
### binCheck(binary, [arguments])
Returns a `Promise` for a `boolean`.
### binCheck.sync(binary, [arguments])
Returns a `boolean`.
### binCheck(binary, command, callback)
#### binary
@@ -38,12 +32,18 @@ Type: `string`
Path to the binary.
#### arguments
#### command
Type: `Array`<br>
Type: `array`
Default: `['--help']`
Arguments to run the binary with.
Commands to run the binary with.
#### callback(err, works)
Type: `function`
`works` is a `boolean` which returns `true` if the binary is working correctly.
## License