You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/11/19 00:48:19 UTC

[GitHub] brodybits opened a new issue #49: Use os.homedir() instead of process.env.HOME & process.env.USERPROFILE

brodybits opened a new issue #49: Use os.homedir() instead of process.env.HOME & process.env.USERPROFILE
URL: https://github.com/apache/cordova/issues/49
 
 
   From discussion in #48 and some additional research ([[1]](https://stackoverflow.com/questions/9080085/node-js-find-home-directory-in-platform-agnostic-way)) I discovered that `require('os').homedir()` is more portable than using `process.env.HOME` and sometimes `process.env.USERPROFILE` as I found in the following places:
   * `cordova-lib`: <https://github.com/apache/cordova-lib/blob/master/src/cordova/util.js#L31>
   * `cordova-ios`: <https://github.com/apache/cordova-ios/blob/master/bin/templates/scripts/cordova/lib/check_reqs.js#L95>
   
   [1] <https://stackoverflow.com/questions/9080085/node-js-find-home-directory-in-platform-agnostic-way>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org