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

#8 in #normalize

Download history 290/week @ 2024-06-18 196/week @ 2024-06-25 207/week @ 2024-07-02 296/week @ 2024-07-09 245/week @ 2024-07-16 283/week @ 2024-07-23 325/week @ 2024-07-30 290/week @ 2024-08-06 255/week @ 2024-08-13 276/week @ 2024-08-20 257/week @ 2024-08-27 190/week @ 2024-09-03 276/week @ 2024-09-10 203/week @ 2024-09-17 291/week @ 2024-09-24 170/week @ 2024-10-01

973 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