Skip to content

Get correct home path on windows#1

Open
zodern wants to merge 1 commit into
piranna:masterfrom
zodern:patch-1
Open

Get correct home path on windows#1
zodern wants to merge 1 commit into
piranna:masterfrom
zodern:patch-1

Conversation

@zodern

@zodern zodern commented Dec 2, 2015

Copy link
Copy Markdown

I haven't tested this yet. I will have a windows computer in a couple days if you want me to test it first.

@piranna

piranna commented Dec 2, 2015

Copy link
Copy Markdown
Owner

Do you know if there's a module that manage this? I think it's a better option...

@zodern

zodern commented Dec 2, 2015

Copy link
Copy Markdown
Author

I found the fix in http://shapeshed.com/writing-cross-platform-node/. It says https://www.npmjs.com/package/module-smith takes care of it.

@piranna

piranna commented Dec 2, 2015

Copy link
Copy Markdown
Owner

I've found several of them:

https://www.npmjs.com/package/home-path
https://www.npmjs.com/package/home-dir
https://www.npmjs.com/package/user-home

In fact, the first link sais recent versions of Node.js include the os.homedir() method to get this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants