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

#9 in #normalize

Download history 73/week @ 2023-05-19 94/week @ 2023-05-26 126/week @ 2023-06-02 54/week @ 2023-06-09 86/week @ 2023-06-16 66/week @ 2023-06-23 110/week @ 2023-06-30 123/week @ 2023-07-07 82/week @ 2023-07-14 85/week @ 2023-07-21 97/week @ 2023-07-28 93/week @ 2023-08-04 181/week @ 2023-08-11 163/week @ 2023-08-18 167/week @ 2023-08-25 141/week @ 2023-09-01

678 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