1 unstable release

0.1.0 Oct 8, 2020

#30 in #expansion

Download history 26/week @ 2024-11-13 113/week @ 2024-11-20 6/week @ 2024-11-27 16/week @ 2024-12-04 46/week @ 2024-12-11 19/week @ 2024-12-18 19/week @ 2024-12-25 12/week @ 2025-01-01 14/week @ 2025-01-08 26/week @ 2025-01-15 11/week @ 2025-01-22 18/week @ 2025-01-29 44/week @ 2025-02-05 78/week @ 2025-02-12 59/week @ 2025-02-19 44/week @ 2025-02-26

230 downloads per month
Used in 3 crates

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
~51K SLoC