Files
Testing/html5-chat/nodeMulti/node_modules/home-path/lib/home-path.js
sean 343b4a3f3f
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-19 18:32:17 -05:00

19 lines
385 B
JavaScript

"use strict";
/**
Cross-platform home directory retriever, tested on Windows XP, Windows 8.1, Mac OSX, Linux.
@module home-path
*/
module.exports = getHomePath;
/**
@alias module:home-path
@example
> var getHomePath = require("home-path");
> getHomePath()
'/Users/Lloyd'
*/
function getHomePath() {
return process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE;
};