Cloudflare Docs
Workers
Edit this page on GitHub
Set theme to dark (⇧+D)

path

The node:path module provides utilities for working with file and directory paths. The node:path module can be accessed using:

import path from "node:path"
path.join('/foo', 'bar', 'baz/asdf', 'quux', '..');
// Returns: '/foo/bar/baz/asdf'

Refer to the Node.js documentation for path for more information.