code: function resolveModulePathSync(userResolver, moduleName) {
    [moduleName, userResolver] = [moduleName || userResolver, userResolver || settings.get('resolver')];
    let dir = _getRoot(userResolver);
    return _getResolve(userResolver).resolveSync(moduleName, dir);
  }
docs: Resolve a module path starting from current directory via returned promise.
  
  @public
  @param {Object} [userResolver=config.get('resolver')]    User-created resolver function.
  @param {string} moduleName                               Module name or path (same format as supplied to require()).
  @returns {Promise.<string>}