Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xdg-basedir

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xdg-basedir - npm Package Compare versions

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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc