0.0.2 • Published 4 months ago

khmer-date-utils v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
4 months ago

Date Range Utils

A lightweight and versatile npm package designed to simplify working with date ranges in JavaScript and TypeScript applications.

Installation

  1. Install the package using npm: khmer-date-utils library by running the following command:

    npm install khmer-date-utils
  2. Import the khmer-date-utils in your project Angular CLI:

    import { GetDateRange } from 'khmer-date-utils';

Usage

```typescript
import { GetDateRange } from 'khmer-date-utils';

console.log(GetDateRange(ETypeDate.LastMonth));
/*
{
    dateType: 'lastMonth',
    startDate: 2025-02-01T08:47:18.054Z,
    endDate: 2025-02-28T08:47:18.054Z
}
*/
```

Author

Mon Sopheap