#command-line-tool #list #suffix #public #domain

bin+lib pslr

Command-line tool for Public Suffix List interactions

3 stable releases

Uses new Rust 2024

1.0.2 Oct 3, 2025

#5 in #suffix

MIT license

99KB
84 lines

pslr

A small binary wrapper around the publicsuffix crate that outputs suffixes and registrable domains based on data provided by publicsuffix.org.

Installation

Cargo

cargo install pslr

Manual installation

Find the latest release and download the associated binary for your platform, placing the extracted binary somewhere in your $PATH.

Usage

Get the suffix of a name

$ pslr --suffix www.example.com
com

Get the registrable domain of a name

$ pslr --domain www.example.com
example.com

Use a custom suffix list

$ pslr --list ./path/to/list.dat --suffix www.example.com

Credits

Dependencies

~1–1.6MB
~28K SLoC