Overview of @praha/byethrow features
mainThe @praha/byethrow library provides a lightweight, tree-shakable Result type for handling errors explicitly.
Core characteristics:
- Tree-shakable: Only the utilities you import are included in your bundle.
- Object-based: Uses plain objects instead of classes to avoid overhead and magic.
- Unified sync/async: Designed to work seamlessly with both
Result<T, E>andPromise<Result<T, E>>. - Focused API: Provides a consistent and predictable API for handling both synchronous and asynchronous fallible operations without unnecessary complexity.