code: function basename (filePath) {
    if (isWindows) {
      // Windows executables must have an extension, so strip it away
      return path.basename(filePath, path.extname(filePath))
    }
    return path.basename(filePath)
  }
docs: basename (filePath: String) => String