https://github.com/ivanceras/url_path
https://github.com/ivanceras/url_path
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ivanceras/url_path
- Owner: ivanceras
- License: mit
- Created: 2018-10-03T11:24:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-26T20:45:25.000Z (over 5 years ago)
- Last Synced: 2025-04-11T15:23:26.678Z (9 months ago)
- Language: Rust
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```rust
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