#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

#438 in Filesystem

Download history 41/week @ 2024-07-28 2/week @ 2024-09-22

251 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

~0.7–11MB
~67K SLoC