code: def format_npm_command_for_logging(command):
      
      if platform.system().lower() == 'windows':
          if command[0] == 'npx.cmd' and command[1] == '-c':
              return "npx.cmd -c \"%s\"" % " ".join(command[2:])
          return " ".join(command)
      # Strip out redundant npx quotes not needed when executing the command
      # directly
      return " ".join(command).replace('\'\'', '\'')
docs: Convert npm command list to string for display to user.