Node.js v18.12.1 documentation


Table of contents目录

URL#

Stability: 2 - Stable

Source Code: lib/url.js

The node:url module provides utilities for URL resolution and parsing. node:url模块提供用于url解析和解析的实用程序。It can be accessed using:可通过以下方式访问:

import url from 'node:url';const url = require('node:url');