Skip to content

Feature request: parse port #136

Description

@max-baz

I'd like to propose to extend .parse() to also return the port, like so:

tldjs.parse("example.com:1234");
// {
//     domain: "example.com",
//     hostname: "example.com",
//     isIp: false,
//     isValid: true,
//     publicSuffix: "com",
//     subdomain: "",
//     tldExists: true,
//     port: 1234  // <-----------------
// }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions