normalize-url-rs

Crates.ionormalize-url-rs
lib.rsnormalize-url-rs
version0.2.0
sourcesrc
created_at2023-01-28 18:26:13.201255
updated_at2023-09-04 08:36:49.425859
descriptionPort of Node.js URL normalization library
homepagehttps://github.com/frysztak/normalize-url-rs
repositoryhttps://github.com/frysztak/normalize-url-rs
max_upload_size
id770503
size48,943
Sebastian Frysztak (frysztak)

documentation

README

normalize-url-rs

normalize-url-rs is a port of Node.js normalize-url package for the Rust programming language.

Documentation: https://docs.rs/normalize-url-rs

Sample usage

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")

Known differences vs original Node.js library

  • Custom protocols are not supported
  • Data URLs are not supported
Commit count: 7

cargo fmt