flow like the river

This commit is contained in:
root 2025-11-07 00:06:12 +01:00
commit 013fe673f3
42435 changed files with 5764238 additions and 0 deletions

28
BACK_BACK/node_modules/get-port/index.js generated vendored Executable file
View file

@ -0,0 +1,28 @@
'use strict';
const net = require('net');
const getPort = options => new Promise((resolve, reject) => {
// For backwards compatibility with number-only input
// TODO: Remove this in the next major version
if (typeof options === 'number') {
options = {
port: options
};
}
const server = net.createServer();
server.unref();
server.on('error', reject);
server.listen(options, () => {
const port = server.address().port;
server.close(() => {
resolve(port);
});
});
});
module.exports = options => options ?
getPort(options).catch(() => getPort(0)) :
getPort(0);

9
BACK_BACK/node_modules/get-port/license generated vendored Executable file
View 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.

44
BACK_BACK/node_modules/get-port/package.json generated vendored Executable file
View file

@ -0,0 +1,44 @@
{
"name": "get-port",
"version": "3.2.0",
"description": "Get an available port",
"license": "MIT",
"repository": "sindresorhus/get-port",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"index.js"
],
"keywords": [
"port",
"find",
"finder",
"portfinder",
"free",
"available",
"connection",
"connect",
"open",
"net",
"tcp",
"scan",
"rand",
"random",
"preferred",
"chosen"
],
"devDependencies": {
"ava": "*",
"pify": "^3.0.0",
"xo": "*"
}
}

64
BACK_BACK/node_modules/get-port/readme.md generated vendored Executable file
View file

@ -0,0 +1,64 @@
# get-port [![Build Status](https://travis-ci.org/sindresorhus/get-port.svg?branch=master)](https://travis-ci.org/sindresorhus/get-port)
> Get an available port
## Install
```
$ npm install get-port
```
## Usage
```js
const getPort = require('get-port');
getPort().then(port => {
console.log(port);
//=> 51402
});
```
Optionally, pass in a preferred port:
```js
getPort({port: 3000}).then(port => {
console.log(port);
// Will use 3000 if available, otherwise fall back to a random port
});
```
## API
### getPort([options])
Returns a `Promise` for a port number.
#### options
Type: `Object`
##### port
Type: `number`
The preferred port to use.
##### host
Type: `string`
The host on which port resolution should be performed. Can be either an IPv4 or IPv6 address.
## Related
- [get-port-cli](https://github.com/sindresorhus/get-port-cli) - CLI for this module
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)