This commit is contained in:
szabomarton
2025-01-28 11:38:27 +01:00
parent 9c5ca86086
commit 7f4a15b9c3
36841 changed files with 4032468 additions and 1 deletions

18
25_01_07/mai/node_modules/temp-dir/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,18 @@
/**
Get the real path of the system temp directory.
@example
```
import * as os from 'os';
import tempDirectory = require('temp-dir');
console.log(tempDirectory);
//=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T'
console.log(os.tmpdir());
//=> '/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T' // <= Symlink
```
*/
declare const tempDirectory: string;
export = tempDirectory;

13
25_01_07/mai/node_modules/temp-dir/index.js generated vendored Normal file
View File

@@ -0,0 +1,13 @@
'use strict';
const fs = require('fs');
const os = require('os');
const tempDirectorySymbol = Symbol.for('__RESOLVED_TEMP_DIRECTORY__');
if (!global[tempDirectorySymbol]) {
Object.defineProperty(global, tempDirectorySymbol, {
value: fs.realpathSync(os.tmpdir())
});
}
module.exports = global[tempDirectorySymbol];

9
25_01_07/mai/node_modules/temp-dir/license generated vendored Normal 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.

41
25_01_07/mai/node_modules/temp-dir/package.json generated vendored Normal file
View File

@@ -0,0 +1,41 @@
{
"name": "temp-dir",
"version": "2.0.0",
"description": "Get the real path of the system temp directory",
"license": "MIT",
"repository": "sindresorhus/temp-dir",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=8"
},
"scripts": {
"test": "xo && ava && tsd"
},
"files": [
"index.js",
"index.d.ts"
],
"keywords": [
"temp",
"tmpdir",
"os",
"system",
"real",
"path",
"realpath",
"resolved",
"temporary",
"directory",
"folder"
],
"devDependencies": {
"ava": "^1.4.1",
"proxyquire": "^2.1.0",
"tsd": "^0.7.2",
"xo": "^0.24.0"
}
}

30
25_01_07/mai/node_modules/temp-dir/readme.md generated vendored Normal file
View File

@@ -0,0 +1,30 @@
# temp-dir [![Build Status](https://travis-ci.org/sindresorhus/temp-dir.svg?branch=master)](https://travis-ci.org/sindresorhus/temp-dir)
> Get the real path of the system temp directory
[The `os.tmpdir()` built-in doesn't return the real path.](https://github.com/nodejs/node/issues/11422) That can cause problems when the returned path is a symlink, which is the case on macOS. Use this module to get the resolved path.
## Install
```
$ npm install temp-dir
```
## Usage
```js
const tempDirectory = require('temp-dir');
console.log(tempDirectory);
//=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T'
console.log(require('os').tmpdir());
//=> '/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T' // <= Symlink
```
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)