URL
API support and documentation for the node:url
module.
import fs from "node:fs"
const fs = require("node:fs")
import fs from "node:fs/promises"
const fs = require("node:fs/promises")
Modules
Status | Module |
---|---|
🟢 Supported. |
|
Standard / Docs | Notes |
---|---|
Node's take on the URL standard. | |
Universal URL standard offered by WHATWG. | |
MDN's documentation for the URL standard in browsers. |
url
| Classes
URL
🟢 Supported.
URLSearchParams
🟢 Supported.
url
| Methods
domainToASCII(domain)
🔴 Not implemented.
domainToUnicode(domain)
🔴 Not implemented.
fileURLToPath(url[, options])
🔴 Not implemented.
format(URL[, options])
🔴 Not implemented.
pathToFileURL(path[, options])
🔴 Not implemented.
urlToHttpOptions(url)
🔴 Not implemented.
format(urlObject)
🔴 Not implemented. Legacy.
parse(urlString[, parseQueryString[, slashesDenoteHost]])
🔴 Not implemented. Deprecated.
resolve(from, to)
🔴 Not implemented. Legacy.
Last modified: 14 May 2024