Registry / utility / public-suffix

public-suffix

JSON →
library7.0.5rbrubygemsunverified

Parse and decompose domain names into top-level domain, domain, and subdomains.

gem install public_suffix
INSTALL
IMPORT
SIG · PUBLIC-SUFFIX
P
public-suffix
utilityrubyv7.0.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PublicSuffix
require 'public_suffix'

Parse a domain name into its components.

require 'public_suffix' domain = PublicSuffix.parse('www.example.co.uk') puts domain.tld # => "co.uk" puts domain.domain # => "example.co.uk" puts domain.subdomain # => "www"
Debug
Known issues

No known issues recorded.

Upgrade
Version history
7.0.5latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
public-suffix — gem install public-suffix · libregistry