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.
Was this helpful?
- Resources
 - API
 - New to Cloudflare?
 - Products
 - Sponsorships
 - Open Source
 
- Support
 - Help Center
 - System Status
 - Compliance
 - GDPR
 
- Company
 - cloudflare.com
 - Our team
 - Careers
 
- 2025 Cloudflare, Inc.
 - Privacy Policy
 - Terms of Use
 - Report Security Issues
 - Trademark