os: add homedir()
authorcjihrig <cjihrig@gmail.com>
Mon, 25 May 2015 15:01:42 +0000 (11:01 -0400)
committercjihrig <cjihrig@gmail.com>
Sat, 6 Jun 2015 02:58:14 +0000 (22:58 -0400)
commit6e78e5feaa5a40888f1c49418f9c2c396838baa5
tree2d99b37b9e08067949d66b2347aa5cb0a93cbe1b
parent02c345020a5280ab00475ef1aae71c849f5c3a42
os: add homedir()

os.homedir() calls libuv's uv_os_homedir() to retrieve the current
user's home directory.

PR-URL: https://github.com/nodejs/io.js/pull/1791
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rod Vagg <rod@vagg.org>
doc/api/os.markdown
lib/os.js
src/node_os.cc
test/common.js
test/parallel/test-os-homedir-no-envvar.js [new file with mode: 0644]
test/parallel/test-os.js