2 releases

0.1.1 Jul 11, 2022
0.1.0 Sep 19, 2021

#1708 in Development tools

Download history 148/week @ 2023-12-04 5/week @ 2023-12-11 14/week @ 2024-01-08 47/week @ 2024-01-15 10/week @ 2024-01-22 1/week @ 2024-01-29 11/week @ 2024-02-05 2/week @ 2024-02-12 24/week @ 2024-02-19 40/week @ 2024-02-26 14/week @ 2024-03-04 32/week @ 2024-03-11 12/week @ 2024-03-18

100 downloads per month
Used in aim

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.2–3MB
~54K SLoC