portls 0.1.0

Modern cross-platform port inspector - ls for network ports
Documentation
1
2
3
4
5
6
use crate::types::PortInfo;

pub fn print_ports(ports: &[PortInfo]) {
    let json = serde_json::to_string_pretty(ports).expect("Failed to serialize to JSON");
    println!("{json}");
}