#home #tilde

home-dir

expands home directories in a path

1 unstable release

0.1.0 Oct 8, 2020

#1474 in Filesystem

Download history 80/week @ 2023-08-02 42/week @ 2023-08-09 92/week @ 2023-08-16 184/week @ 2023-08-23 33/week @ 2023-08-30 86/week @ 2023-09-06 44/week @ 2023-09-13 33/week @ 2023-09-20 30/week @ 2023-09-27 37/week @ 2023-10-04 38/week @ 2023-10-11 54/week @ 2023-10-18 47/week @ 2023-10-25 42/week @ 2023-11-01 35/week @ 2023-11-08 37/week @ 2023-11-15

176 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
~52K SLoC