3 stable releases
Uses new Rust 2024
| 1.0.2 | Oct 3, 2025 |
|---|
#5 in #suffix
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
- Ryan Chandler
- rushmorem for the publicsuffix crate
Dependencies
~1–1.6MB
~28K SLoC