libpsl

C library for parsing the Public Suffix List

brewmacoslinux
Try with needOr install directly
Source

About

C library for the Public Suffix List

Commands

psl

Examples

Check if a domain is a public suffix$ psl --is-public-suffix example.com
Get the registrable domain from a URL$ psl --print-unreg-domain www.example.co.uk
Display version information$ psl --version