Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Add os.homeDir() #3466

Closed
domenic opened this issue Jun 17, 2012 · 1 comment
Closed

Add os.homeDir() #3466

domenic opened this issue Jun 17, 2012 · 1 comment
Labels

Comments

@domenic
Copy link

domenic commented Jun 17, 2012

In the spirit of #3407, this would be nice. From npm:

var home = ( process.platform === "win32"
           ? process.env.USERPROFILE
           : process.env.HOME )

Example of where this would have helped people write Windows compatible modules: browserify/browserify@bf0354a

Can do a PR later tonight if you guys are agreeable.

@isaacs
Copy link

isaacs commented Jun 18, 2012

I'm feeling kind of iffy on this. Even having os.tmpDir in there is kind of bugging me.

I don't want to leave you hanging though, so I wrote this for you to use instead: https://github.com/isaacs/osenv

@isaacs isaacs closed this as completed Jun 18, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants