Node.js v18.12.1 documentation


Table of contents

Path#

Stability: 2 - Stable

Source Code: lib/path.js

The node:path module provides utilities for working with file and directory paths. It can be accessed using:node:path模块提供了处理文件和目录路径的实用程序。可通过以下方式访问:

const path = require('node:path');