Satch
High-performance glob pattern matching for Rust and CLI.
Install
CLI
Library
[]
= "0.1.0"
CLI Usage
Pattern Matching
# Basic matching
| |
# Multiple paths
File Listing
# Current directory
# Recursive search
Advanced Patterns
# Globstar patterns
# Character classes
Library Usage
Basic Matching
use is_match;
// Simple patterns
is_match; // true
is_match; // false
// With basename matching needed
is_match; // true
Advanced Patterns
// Globstars
is_match; // true
is_match; // true
// Character classes
is_match; // true
is_match; // true
is_match; // false (case sensitive)
Patterns
| Pattern | Example Matches |
|---|---|
*.js |
main.js, test.js |
**/*.js |
src/main.js, lib/test.js |
src/**/*.rs |
src/lib/main.rs, src/utils.rs |
[a-z]*.txt |
file.txt, readme.txt |
Credits
Rust port of micromatch and picomatch.
License
MIT