rip 1.0.1
rip: ^1.0.1 copied to clipboard
Fast, safe, and beautiful CLI & TUI cleanup tool for macOS, Windows, and Linux (Review, Inspect, Purge).
import 'package:rip/rip.dart';
void main() async {
print('RIP Clean Example - Scanning system targets...\n');
final scanner = SystemScanner();
final categories = await scanner.scanAll(
onProgress: (name, progress) {
final pct = (progress * 100).toInt();
print('[$pct%] Scanning $name...');
},
);
int totalBytes = 0;
for (final cat in categories) {
totalBytes += cat.totalSizeBytes;
print('\n${cat.icon} ${cat.name}: ${SafetyManager.formatBytes(cat.totalSizeBytes)} (${cat.items.length} items)');
}
print('\nTotal Reclaimable Space: ${SafetyManager.formatBytes(totalBytes)}');
}