#path #tilde #expand #light-weight #performance

simple-expand-tilde

Cross-platform and reliable tilde-expansion solution

11 releases

0.4.4 Nov 5, 2024
0.4.2 Sep 11, 2024
0.4.0 Jul 20, 2024
0.1.4 Jan 21, 2024

#475 in Filesystem

Download history 291/week @ 2024-07-29 320/week @ 2024-08-05 276/week @ 2024-08-12 349/week @ 2024-08-19 229/week @ 2024-08-26 307/week @ 2024-09-02 780/week @ 2024-09-09 264/week @ 2024-09-16 362/week @ 2024-09-23 398/week @ 2024-09-30 352/week @ 2024-10-07 228/week @ 2024-10-14 275/week @ 2024-10-21 242/week @ 2024-10-28 449/week @ 2024-11-04 266/week @ 2024-11-11

1,263 downloads per month
Used in qsv

MIT license

3KB

simple-expand-tilde

Crate

A minimal, fast, and reliable tilde expansion solution.

Usage

use simple_expand_tilde::*;

fn main() {
    // Windows  =>  C:\Users\jdoe\.rustup
    // Linux    =>  /home/jdoe/.rustup
    // Mac      =>  /Users/jdoe/.rustup
    let path = expand_tilde("~/.rustup").unwrap();
}

Dependencies

~0–6.5MB
~35K SLoC