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

Get XDG Base Directory paths

  • 5.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is xdg-basedir?

The xdg-basedir package is a Node.js module that provides access to the XDG Base Directory Specification paths. It allows developers to easily find standard directories like configuration, data, and cache directories according to the XDG standards, which are commonly used in various Linux distributions.

What are xdg-basedir's main functionalities?

Access to XDG Config Directory

This feature allows developers to retrieve the path to the user's XDG config directory, which is used to store configuration files.

const xdgBasedir = require('xdg-basedir');
console.log(xdgBasedir.config);

Access to XDG Data Directory

This feature provides the path to the XDG data directory, where applications can store data files.

const xdgBasedir = require('xdg-basedir');
console.log(xdgBasedir.data);

Access to XDG Cache Directory

This feature retrieves the path to the XDG cache directory, which is intended for non-essential data files.

const xdgBasedir = require('xdg-basedir');
console.log(xdgBasedir.cache);

Other packages similar to xdg-basedir

Keywords

FAQs

Package last updated on 05 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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