Open this example in the interactive library
Source code
import path from "node:path";
console.log(path.join("reports", "2026", "summary.json"));
Sample output
reports/2026/summary.json

Open this example in the interactive library
import path from "node:path";
console.log(path.join("reports", "2026", "summary.json"));
reports/2026/summary.json