2 releases

0.1.1 Jul 11, 2022
0.1.0 Sep 19, 2021

#2160 in Development tools

Download history 6/week @ 2024-11-23 22/week @ 2024-11-30 31/week @ 2024-12-07 13/week @ 2024-12-14 5/week @ 2025-01-11 2/week @ 2025-01-18 9/week @ 2025-02-01 15/week @ 2025-02-08 5/week @ 2025-02-15 17/week @ 2025-02-22 20/week @ 2025-03-01 67/week @ 2025-03-08

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