Repository navigation
v2.0.2
Initial commit: refetch HTTP client library
Add lightweight, apisauce-inspired HTTP client built on native fetch API with full TypeScript support.
Features:
- Native fetch API wrapper with standardized response format
- Request/response transforms (sync & async)
- Response monitors for logging/analytics
- Timeout support via AbortController
- Error classification with PROBLEM_CODE enum
- Full TypeScript support with generics
- Dual package format (ESM + CommonJS)
Build infrastructure:
- tsup for fast bundling with dual format output
- TypeScript declarations generation
- Source maps for debugging
Package configuration:
- Scoped package: @mshindi-labs/refetch
- MIT licensed
- Node.js 18+ required
- Comprehensive README with examples
Co-Authored-By: Mshindi Labs INC 184962783+mshindi-labs@users.noreply.github.com