2 releases

0.1.1 Jul 11, 2022
0.1.0 Sep 19, 2021

#1644 in Development tools

Download history 11/week @ 2024-01-05 42/week @ 2024-01-12 15/week @ 2024-01-19 4/week @ 2024-01-26 5/week @ 2024-02-02 7/week @ 2024-02-09 15/week @ 2024-02-16 31/week @ 2024-02-23 26/week @ 2024-03-01 19/week @ 2024-03-08 27/week @ 2024-03-15 16/week @ 2024-03-22 52/week @ 2024-03-29 12/week @ 2024-04-05

109 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–3MB
~53K SLoC