degit icon indicating copy to clipboard operation
degit copied to clipboard

Support XDG Base Directory Specification

Open psnszsn opened this issue 5 years ago • 3 comments

Degit should be using $XDG_CACHE_HOME/degit instead of ~/.degit to store downloaded repositories. This keeps users' home directories clean of dotfiles. It is being widely adopted by Linux/BSD applications.

See here for more info.

psnszsn avatar Jun 10 '19 10:06 psnszsn

This could/should be considered a bug these days because the XDG Base Directory Specification has been a (well established) standard for over 10 years or so.

x80486 avatar Dec 07 '20 22:12 x80486

Agree. Forced to refuse from degit because of this

ZerdoX-x avatar Apr 24 '21 10:04 ZerdoX-x

Currently, degit use https://github.com/Rich-Harris/degit/blob/master/src/utils.js#L127 home-ortmp as a base directory determine way, maybe could use https://www.npmjs.com/package/xdg to instead.

yola-0316 avatar Apr 21 '22 05:04 yola-0316