Open this example in the interactive library
Source code
import { win32 as path } from "node:path";
console.log(path.join("C:/", "work", "readme.md"));
Sample output
C:\work\readme.md

Open this example in the interactive library
import { win32 as path } from "node:path";
console.log(path.join("C:/", "work", "readme.md"));
C:\work\readme.md