Skip to content

fileURLToPath returns forward slashes on Windows #25265

Description

@zenparsing
  • Version: v11.6.0
  • Platform: Win64
  • Subsystem: url

url.fileURLToPath results in a path containing forward slashes instead of backslashes on Windows.

url.fileURLToPath('file:///C:/Users/zenparsing/Code');
// 'C:/Users/zenparsing/Code'

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues and PRs for confirmed bugs.urlIssues and PRs related to the legacy built-in url module.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions