2 releases
0.1.1 | Jul 11, 2022 |
---|---|
0.1.0 | Sep 19, 2021 |
#889 in Development tools
103 downloads per month
Used in aim
4KB
58 lines
untildify
Utility to replace ~ with user home directory
Example
extern crate untildify;
fn main() {
println!("Untildify : {}", untildify::untildify("~/Desktop"));
// prints /Users/<user_name>/Desktop
// Other Examples
assert_eq!(untildify("~/a/b/c/d/e"), "/User/Untildify/a/b/c/d/e");
assert_eq!(untildify("~/"), "/User/Untildify/");
}
Dependencies
~0.9–1.3MB
~37K SLoC