1 unstable release

0.1.0 Oct 8, 2020

#14 in #home-directory

Download history 34/week @ 2023-11-20 20/week @ 2023-11-27 36/week @ 2023-12-04 6/week @ 2023-12-11 32/week @ 2023-12-18 5/week @ 2023-12-25 12/week @ 2024-01-08 15/week @ 2024-01-15 8/week @ 2024-01-22 26/week @ 2024-02-05 47/week @ 2024-02-12 20/week @ 2024-02-19 44/week @ 2024-02-26 27/week @ 2024-03-04

141 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