mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-02-04 05:50:50 +00:00
nhj
more
This commit is contained in:
25
unified-ai-platform/node_modules/os-tmpdir/index.js
generated
vendored
Normal file
25
unified-ai-platform/node_modules/os-tmpdir/index.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
'use strict';
|
||||
var isWindows = process.platform === 'win32';
|
||||
var trailingSlashRe = isWindows ? /[^:]\\$/ : /.\/$/;
|
||||
|
||||
// https://github.com/nodejs/node/blob/3e7a14381497a3b73dda68d05b5130563cdab420/lib/os.js#L25-L43
|
||||
module.exports = function () {
|
||||
var path;
|
||||
|
||||
if (isWindows) {
|
||||
path = process.env.TEMP ||
|
||||
process.env.TMP ||
|
||||
(process.env.SystemRoot || process.env.windir) + '\\temp';
|
||||
} else {
|
||||
path = process.env.TMPDIR ||
|
||||
process.env.TMP ||
|
||||
process.env.TEMP ||
|
||||
'/tmp';
|
||||
}
|
||||
|
||||
if (trailingSlashRe.test(path)) {
|
||||
path = path.slice(0, -1);
|
||||
}
|
||||
|
||||
return path;
|
||||
};
|
||||
0
unified-ai-platform/node_modules/os-tmpdir/license
generated
vendored
Normal file
0
unified-ai-platform/node_modules/os-tmpdir/license
generated
vendored
Normal file
41
unified-ai-platform/node_modules/os-tmpdir/package.json
generated
vendored
Normal file
41
unified-ai-platform/node_modules/os-tmpdir/package.json
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"name": "os-tmpdir",
|
||||
"version": "1.0.2",
|
||||
"description": "Node.js os.tmpdir() ponyfill",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/os-tmpdir",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"keywords": [
|
||||
"built-in",
|
||||
"core",
|
||||
"ponyfill",
|
||||
"polyfill",
|
||||
"shim",
|
||||
"os",
|
||||
"tmpdir",
|
||||
"tempdir",
|
||||
"tmp",
|
||||
"temp",
|
||||
"dir",
|
||||
"directory",
|
||||
"env",
|
||||
"environment"
|
||||
],
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"xo": "^0.16.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user