apache / apache/cordova

Use os.homedir() instead of process.env.HOME & process.env.USERPROFILE

Open
#49 0 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
No language data
Stars
710
Forks
75
PR merge metrics
No merged PRs in 30d

Description

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`:
* `cordova-ios`:

[1]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.