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 249/week @ 2024-07-21 365/week @ 2024-07-28 291/week @ 2024-08-04 249/week @ 2024-08-11 216/week @ 2024-08-18 322/week @ 2024-08-25 191/week @ 2024-09-01 272/week @ 2024-09-08 202/week @ 2024-09-15 271/week @ 2024-09-22 207/week @ 2024-09-29 178/week @ 2024-10-06 166/week @ 2024-10-13 251/week @ 2024-10-20 303/week @ 2024-10-27 260/week @ 2024-11-03

997 downloads per month
Used in 7 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