Path
API support and documentation for the node:path
module.
import path from "node:path"
const path = require("node:path")
Modules
Status | Module | Docs |
---|---|---|
🟢 Supported. |
|
path
| Properties
path
| Methods
basename(path[, suffix])
🟢 Supported.
dirname(path)
🟢 Supported.
extname(path)
🟢 Supported.
format(pathObject)
🟢 Supported.
isAbsolute(path)
🟢 Supported.
join([...paths])
🟢 Supported.
normalize(path)
🟢 Supported.
parse(path)
🟢 Supported.
relative(from, to)
🟢 Supported.
resolve([...paths])
🟢 Supported.
toNamespacedPath(path)
🟢 Supported.
Last modified: 14 May 2024