xdg-basedir
Advanced tools
Comparing version 5.0.0 to 5.0.1
20
index.js
@@ -7,22 +7,22 @@ import os from 'os'; | ||
export const data = env.XDG_DATA_HOME || | ||
export const xdgData = env.XDG_DATA_HOME || | ||
(homeDirectory ? path.join(homeDirectory, '.local', 'share') : undefined); | ||
export const config = env.XDG_CONFIG_HOME || | ||
export const xdgConfig = env.XDG_CONFIG_HOME || | ||
(homeDirectory ? path.join(homeDirectory, '.config') : undefined); | ||
export const cache = env.XDG_CACHE_HOME || (homeDirectory ? path.join(homeDirectory, '.cache') : undefined); | ||
export const xdgCache = env.XDG_CACHE_HOME || (homeDirectory ? path.join(homeDirectory, '.cache') : undefined); | ||
export const runtime = env.XDG_RUNTIME_DIR || undefined; | ||
export const xdgRuntime = env.XDG_RUNTIME_DIR || undefined; | ||
export const dataDirs = (env.XDG_DATA_DIRS || '/usr/local/share/:/usr/share/').split(':'); | ||
export const xdgDataDirectories = (env.XDG_DATA_DIRS || '/usr/local/share/:/usr/share/').split(':'); | ||
if (data) { | ||
dataDirs.unshift(data); | ||
if (xdgData) { | ||
xdgDataDirectories.unshift(xdgData); | ||
} | ||
export const configDirs = (env.XDG_CONFIG_DIRS || '/etc/xdg').split(':'); | ||
export const xdgConfigDirectories = (env.XDG_CONFIG_DIRS || '/etc/xdg').split(':'); | ||
if (config) { | ||
configDirs.unshift(config); | ||
if (xdgConfig) { | ||
xdgConfigDirectories.unshift(xdgConfig); | ||
} |
{ | ||
"name": "xdg-basedir", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Get XDG Base Directory paths", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6423