Skip to content

docs: explain why path.posix.normalize does not replace windows slashes #12298

Closed
@JestDotty

Description

@JestDotty
  • Version: 4.4.2
  • Platform: Windows 8.1 64 bit
  • Subsystem: node.js native path module

console.log('1', path.posix.normalize("\\some\\thing\\like\\this"))
console.log('2', path.posix.normalize("/some/thing/like/this"))
console.log('3', path.win32.normalize("\\some\\thing\\like\\this"))
console.log('4', path.win32.normalize("/some/thing/like/this"))

output:
image

1 output should be the same as 2s though
Docs need to explain why this is the expected output

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.good first issueIssues that are suitable for first-time contributors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions