1 unstable release

0.1.0 Oct 8, 2020

#29 in #expansion

Download history 26/week @ 2024-03-11 28/week @ 2024-03-18 33/week @ 2024-03-25 64/week @ 2024-04-01 17/week @ 2024-04-08 24/week @ 2024-04-15 101/week @ 2024-04-22 52/week @ 2024-04-29 24/week @ 2024-05-06 22/week @ 2024-05-13 20/week @ 2024-05-20 15/week @ 2024-05-27 25/week @ 2024-06-03 14/week @ 2024-06-10 13/week @ 2024-06-17 45/week @ 2024-06-24

99 downloads per month
Used in memocr

MIT license

6KB
103 lines

home-dir

expands tildes to home directories


lib.rs:

A enable expansion of tildes in paths

built for unix, windows patch welcome

  • ~ expands using the HOME environmental variable.

  • if HOME does not exist, lookup current user in the user database

  • ~user will expand to the user's home directory from the user database

Dependencies

~2.5MB
~53K SLoC