#path #utf-8 #unicode

komichi

Application tools for working with file-system paths

2 stable releases

1.0.3 Apr 1, 2024
1.0.2 Mar 25, 2024
0.2.0 Mar 20, 2024
0.1.0 Mar 13, 2024

#388 in Filesystem

Download history 81/week @ 2024-03-10 146/week @ 2024-03-17 225/week @ 2024-03-24 126/week @ 2024-03-31 5/week @ 2024-04-07

366 downloads per month

MIT/Apache

70KB
1K SLoC

小道 Komichi

Application tools for working with file-system paths.


lib.rs:

小道 Komichi

komichi is a collection of tools to make working with file-system paths more convenient.

Features, include but are not limited to:

  • Uses camino paths so that an application, using this crate, can treat paths like normal Rust string-like types.
  • EnvVal provides the ability to retrieve environment variable values and use a default value if the environment variable does NOT exist or have a value.
  • Expand provides a relatively-fast ability to expand unicode-paths that:
    • may contain BASH-like variables; and
    • may start with a tilde; and
    • may not be absolute.
  • Local can provide application local ($HOME) path directory locations for:
    • cache files
    • config files
    • data files
    • log files
    • state files

Dependencies

~1–11MB
~81K SLoC