Rich-Harris / degit

Straightforward project scaffolding
MIT License
7.04k stars 245 forks source link

Support XDG Base Directory Specification #45

Open psnszsn opened 5 years ago

psnszsn commented 5 years ago

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.

ZerdoX-x commented 3 years ago

Agree. Forced to refuse from degit because of this

yola-0316 commented 2 years ago

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.