forked from public/fvtt-cthulhu-eternal
Initial import with skill sheet working
This commit is contained in:
37
node_modules/v8flags/config-path.js
generated
vendored
Normal file
37
node_modules/v8flags/config-path.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
var os = require('os');
|
||||
var path = require('path');
|
||||
var userHome = os.homedir();
|
||||
|
||||
var env = process.env;
|
||||
var name = 'js-v8flags';
|
||||
|
||||
function macos() {
|
||||
var library = path.join(userHome, 'Library');
|
||||
return path.join(library, 'Caches', name);
|
||||
}
|
||||
|
||||
function windows() {
|
||||
var appData = env.LOCALAPPDATA || path.join(userHome, 'AppData', 'Local');
|
||||
return path.join(appData, name);
|
||||
}
|
||||
|
||||
// https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
|
||||
function linux() {
|
||||
return path.join(env.XDG_CACHE_HOME || path.join(userHome, '.cache'), name);
|
||||
}
|
||||
|
||||
module.exports = function (platform) {
|
||||
if (!userHome) {
|
||||
return os.tmpdir();
|
||||
}
|
||||
|
||||
if (platform === 'darwin') {
|
||||
return macos();
|
||||
}
|
||||
|
||||
if (platform === 'win32') {
|
||||
return windows();
|
||||
}
|
||||
|
||||
return linux();
|
||||
};
|
||||
Reference in New Issue
Block a user