A JavaScript component that provides operating specific path values.
A JavaScript component that provides operating specific path values.
npm i --save ospath
Returns the directory where an application should store its data directory.
%APPDATA%
~/Library/Application Support
$XDG_CONFIG_HOME
or ~/.config
Returns the users desktop directory. On every OS, this is just the home()
dir and Desktop
.
Returns the user's home directory.
%USERPROFILE%
$HOME
Returns a temporary directory. Could also use require('os').tmpdir()
.
%TEMP%
/tmp
MIT