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

#6 in #canonicalize

Download history 278/week @ 2024-11-29 322/week @ 2024-12-06 364/week @ 2024-12-13 215/week @ 2024-12-20 121/week @ 2024-12-27 238/week @ 2025-01-03 350/week @ 2025-01-10 332/week @ 2025-01-17 237/week @ 2025-01-24 247/week @ 2025-01-31 321/week @ 2025-02-07 324/week @ 2025-02-14 333/week @ 2025-02-21 304/week @ 2025-02-28 304/week @ 2025-03-07 368/week @ 2025-03-14

1,335 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