Created
August 5, 2016 21:58
-
-
Save cronoh/6191c3aa6a4e29bca155f32655dc41c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getConfigDirectory = function () { | |
switch (process.platform) { | |
case 'linux': return process.env.XDG_CONFIG_HOME || path.join(home(), '.config') | |
case 'darwin': return path.join(home(), 'Library', 'Preferences'); | |
case 'win32': return path.join(home(), 'AppData', 'Roaming'); | |
default: return home(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment