4 releases

0.1.3 Apr 26, 2020
0.1.2 Oct 3, 2018
0.1.1 Oct 3, 2018
0.1.0 Oct 3, 2018

#5 in #canonicalize

Download history 341/week @ 2024-10-31 216/week @ 2024-11-07 234/week @ 2024-11-14 168/week @ 2024-11-21 259/week @ 2024-11-28 309/week @ 2024-12-05 390/week @ 2024-12-12 219/week @ 2024-12-19 131/week @ 2024-12-26 227/week @ 2025-01-02 305/week @ 2025-01-09 344/week @ 2025-01-16 258/week @ 2025-01-23 245/week @ 2025-01-30 309/week @ 2025-02-06 290/week @ 2025-02-13

1,151 downloads per month
Used in 6 crates (3 directly)

MIT license

10KB
229 lines

url_path

url_path Manipulate url paths without requiring the file to exist in the server or OS This is useful for manipulating location urls Example usage:

use url_path::UrlPath;

fn main(){
    let url_path1 = UrlPath::new("src/md/./../../README.md");
    let normalized_path1 = url_path1.normalize();
    assert_eq!("README.md", normalized_path1);

    let url_path2 = UrlPath::new("./README.md");
    let normalized_path2 = url_path2.normalize();
    assert_eq!("README.md", normalized_path2);
}

License: MIT


lib.rs:

url_path Manipulate url paths without requiring the file to exist in the server or OS This is useful for manipulating location urls Example usage:

use url_path::UrlPath;

fn main(){
    let url_path1 = UrlPath::new("src/md/./../../README.md");
    let normalized_path1 = url_path1.normalize();
    assert_eq!("README.md", normalized_path1);

    let url_path2 = UrlPath::new("./README.md");
    let normalized_path2 = url_path2.normalize();
    assert_eq!("README.md", normalized_path2);
}

No runtime deps