Skip to content

Expose the url-to-options function from internal/url.js #34349

Description

@szmarczak

Is your feature request related to a problem? Please describe.

#14570 (comment)

Describe the solution you'd like

Expose the urlToOptions module so it can be imported e.g. const {urlToOptions} = require('url');

That way we could easily convert a URL instance without duplicating the code like this.

Describe alternatives you've considered

No, duplicates increase the package size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues requesting new Node.js features.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions