An open API service indexing awesome lists of open source software.

https://github.com/splurf/simple-expand-tilde

Tilde Expansion library.
https://github.com/splurf/simple-expand-tilde

rust tilde-expansion

Last synced: about 1 year ago
JSON representation

Tilde Expansion library.

Awesome Lists containing this project

README

          

# simple-expand-tilde
[![Crate](https://img.shields.io/crates/v/simple-expand-tilde.svg)](https://crates.io/crates/simple-expand-tilde)

A minimal, fast, and reliable [tilde expansion](https://www.gnu.org/software/bash/manual/html_node/Tilde-Expansion.html) solution.

## Usage
```rust
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();
}
```