2 releases

0.1.1 Jul 11, 2022
0.1.0 Sep 19, 2021

#1901 in Development tools

Download history 15/week @ 2024-07-21 11/week @ 2024-07-28 1/week @ 2024-08-11 13/week @ 2024-08-18 15/week @ 2024-08-25 5/week @ 2024-09-01 3/week @ 2024-09-08 29/week @ 2024-09-15 47/week @ 2024-09-22 29/week @ 2024-09-29 51/week @ 2024-10-06 22/week @ 2024-10-13 26/week @ 2024-10-20 10/week @ 2024-10-27 19/week @ 2024-11-03

87 downloads per month
Used in 2 crates

MIT license

5KB
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

~2–3MB
~54K SLoC