Open this example in the interactive library
Source code
import { posix as path } from "node:path";
console.log(path.normalize("/app/tmp/../config/"));
Sample output
/app/config/

Open this example in the interactive library
import { posix as path } from "node:path";
console.log(path.normalize("/app/tmp/../config/"));
/app/config/