Crates.io | normalize-url-rs |
lib.rs | normalize-url-rs |
version | 0.2.0 |
source | src |
created_at | 2023-01-28 18:26:13.201255 |
updated_at | 2023-09-04 08:36:49.425859 |
description | Port of Node.js URL normalization library |
homepage | https://github.com/frysztak/normalize-url-rs |
repository | https://github.com/frysztak/normalize-url-rs |
max_upload_size | |
id | 770503 |
size | 48,943 |
normalize-url-rs is a port of Node.js normalize-url package for the Rust programming language.
Documentation: https://docs.rs/normalize-url-rs
use normalize_url_rs::{normalize_url, OptionsBuilder};
let options = OptionsBuilder::default().build().unwrap();
let result = normalize_url("https://www.rust-lang.org/", &options);
assert_eq!(result.unwrap(), "https://rust-lang.org")