Skip to content

Utilities

A collection of Angular utilities to enhance your development experience with common patterns and functionality.

Available Utilities

Date Transformer

An Angular HTTP Interceptor ↗️ that automatically converts date strings from API responses into JavaScript Date objects.

typescript
// Automatically transforms ISO date strings to Date objects
{ "createdAt": "2024-01-15T10:30:00Z" }
// becomes
{ "createdAt": Date }

File Download Helper

A simple RxJS operator ↗️ for handling file downloads in Angular applications.

typescript
this.reportService.getReportById(123)
  .pipe(
    downloadFileOperator('report.pdf')
  )
  .subscribe();

Usage

These utilities are designed to work seamlessly with Angular applications and follow Angular best practices. Each utility can be used independently or together as part of your application's architecture.

Released under the MIT License.
This site is powered by Netlify