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.
- Host: GitHub
- URL: https://github.com/splurf/simple-expand-tilde
- Owner: splurf
- License: mit
- Created: 2024-01-17T07:54:55.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-02-27T00:33:52.000Z (over 1 year ago)
- Last Synced: 2025-03-25T21:02:28.793Z (over 1 year ago)
- Topics: rust, tilde-expansion
- Language: Rust
- Homepage: https://crates.io/crates/simple-expand-tilde
- Size: 27.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simple-expand-tilde
[](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();
}
```