New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

xdg-user-dir

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xdg-user-dir

[![CircleCI](https://circleci.com/gh/jskalama/xdg-user-dir.svg?style=svg)](https://circleci.com/gh/jskalama/xdg-user-dir)

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

CircleCI

xdg-user-dir

Get a list of known shell folders indexed by XDG_*_DIR constants.

Usage example:

const getXdgUserDirs = require('xdg-user-dir');

getXdgUserDirs().then(folders => {
    console.log(folders);
});

Output will look like:

{ XDG_DESKTOP_DIR: '/home/user/Рабочий стол',
  XDG_DOWNLOAD_DIR: '/home/user/Загрузки',
  XDG_TEMPLATES_DIR: '/home/user/Шаблоны',
  XDG_PUBLICSHARE_DIR: '/home/user/Общедоступные',
  XDG_DOCUMENTS_DIR: '/home/user/Документы',
  XDG_MUSIC_DIR: '/home/user/Музыка',
  XDG_PICTURES_DIR: '/home/user/Изображения',
  XDG_VIDEOS_DIR: '/home/user/Видео' }

FAQs

Package last updated on 29 May 2018

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