Server IP : 192.250.235.76 / Your IP : 45.90.210.12
System : Linux s2968.sgp1.stableserver.net 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
PHP Version : 8.2.29
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
1902120114081995
Server IP : 198.54.116.172 / Your IP : 216.73.216.36
System : Linux server322.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : mail
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /lib/node_modules/npm/node_modules/xdg-basedir//readme.md
# xdg-basedir [](https://travis-ci.org/sindresorhus/xdg-basedir)
> Get [XDG Base Directory](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html) paths
## Install
```
$ npm install --save xdg-basedir
```
## Usage
```js
const xdgBasedir = require('xdg-basedir');
xdgBasedir.data;
//=> '/home/sindresorhus/.local/share'
xdgBasedir.config;
//=> '/home/sindresorhus/.config'
xdgBasedir.dataDirs
//=> ['/home/sindresorhus/.local/share', '/usr/local/share/', '/usr/share/']
```
## API
The properties `.data`, `.config`, `.cache`, `.runtime` will return `null` in the uncommon case that both the XDG environment variable is not set and the users home directory can't be found. You need to handle this case. A common solution is to [fall back to a temp directory](https://github.com/yeoman/configstore/blob/b82690fc401318ad18dcd7d151a0003a4898a314/index.js#L15).
### .data
Directory for user specific data files.
### .config
Directory for user specific configuration files.
### .cache
Directory for user specific non-essential data files.
### .runtime
Directory for user-specific non-essential runtime files and other file objects (such as sockets, named pipes, etc).
### .dataDirs
Preference-ordered array of base directories to search for data files in addition to `.data`.
### .configDirs
Preference-ordered array of base directories to search for configuration files in addition to `.config`.
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)
Name
Size
Last Modified
Owner / Group
Permissions
Options
.. -- March 03 2024 22:36:29 root / root 0755 index.js 0.703 KB March 10 2021 14:36:36 root / root 0644 license 1.093 KB March 10 2021 14:36:36 root / root 0644 package.json 1.622 KB March 10 2021 14:36:36 root / root 0644 readme.md 1.545 KB March 10 2021 14:36:36 root / root 0644