index.js
function resolveSync (iconPath) {
  var path = resolve(iconPath)
  var stat = fs.statSync(path)

  if (stat.isDirectory()) {
    throw createIsDirError(path)
  }

  return path
}
function resolveSync (iconPath) {
  var path = resolve(iconPath)
  var stat = fs.statSync(path)

  if (stat.isDirectory()) {
    throw createIsDirError(path)
  }

  return path
}
function resolveSync ( iconPath ) { var path = resolve ( iconPath ) var stat = fs . statSync ( path ) if ( stat . isDirectory ( ) ) { throw createIsDirError ( path ) } return path }
Resolve the path to icon.

@param {string} iconPath
@private
Resolve the path to icon .