'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = resolveHomePath;
var userHome = require('user-home');

var HOME_SIGN = '~';

function resolveHomePath(relPath) {
  if (relPath.startsWith(HOME_SIGN)) {
    return relPath.replace(HOME_SIGN, userHome);
  }

  return relPath;
}