bestls-0.1.1 is not a library.
bestls
A fast, colorful, and Rust-powered replacement for the traditional ls command.
bestls provides human-readable file listings in both pretty tables and JSON formats, with sorting and other modern CLI conveniences built for speed and usability.
âĻ Features
- ðĻ Colorful output - Beautiful colored tables for easy reading
- ð Multiple formats - Output as tables, compact JSON, or pretty JSON
- ⥠Blazing fast - Parallel metadata fetching with Rayon
- ð Human-readable - File sizes in KB, MB, GB format
- ð§ Flexible sorting - Sort by name, size, or modification date
- ðŠķ Lightweight - Single binary with no external dependencies
ðĶ Installation
From crates.io
From source
The binary will be available at target/release/bestls.
ð Usage
Basic Commands
List current directory:
List specific directory:
Output Formats
Pretty table (default):
Compact JSON:
Pretty formatted JSON:
Sorting Options
Sort by file size:
Sort by modification date:
Sort by name (default):
Examples
# List home directory with size sorting
# Output current directory as pretty JSON
# List /etc directory sorted by modification date
Help
View all available options:
ð ïļ Command Line Options
| Option | Short | Description |
|---|---|---|
--path |
-p |
Directory path to list |
--sort |
-s |
Sort by: name, size, date |
--json |
Output compact JSON format | |
--json-pretty |
Output pretty formatted JSON | |
--help |
-h |
Show help information |
--version |
-V |
Show version information |
ðïļ Building from Source
Prerequisites
- Rust 1.85.0 or later
- Cargo package manager
Build Steps
-
Clone the repository:
-
Build the project:
-
(Optional) Install globally:
ðĪ Contributing
Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
ð License
This project is licensed under:
- MIT License - See LICENSE for details
ðĻâðŧ Author
Murtaza Nazar
- Email: mkm9284@gmail.com
- GitHub: @MurtadaNazar