Section: Filesystem and Path

path.join

javascript
javascript
import path from "node:path";
const full = path.join(process.cwd(), "data", "users.json");

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Filesystem and Path
path.parse
OpenIn sheetjavascriptsame section
Read file
OpenIn sheetjavascriptsame section
Write file
OpenIn sheetjavascriptsame section
Append file
OpenIn sheetjavascriptsame section
Create directory
OpenIn sheetjavascriptsame section
Read directory
OpenIn sheetjavascriptsame section