Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boussadjra/taqwim
Taqwim is a set of modules to handle Hijri dates based on date-fns
https://github.com/boussadjra/taqwim
calendar datepicker hijri-calendar hijri-dates reactjs taqwim typescript vue
Last synced: about 2 months ago
JSON representation
Taqwim is a set of modules to handle Hijri dates based on date-fns
- Host: GitHub
- URL: https://github.com/boussadjra/taqwim
- Owner: boussadjra
- Created: 2024-05-31T11:08:13.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-08-09T16:49:41.000Z (5 months ago)
- Last Synced: 2024-08-09T18:20:47.106Z (5 months ago)
- Topics: calendar, datepicker, hijri-calendar, hijri-dates, reactjs, taqwim, typescript, vue
- Language: TypeScript
- Homepage: https://taqwim.vercel.app
- Size: 164 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Taqwim
## Overview
Taqwim provides a collection of utilities and components designed for managing Hijri dates in frontend applications. It includes a Hijri date converter, handler, and format, it uses the Umm al-Qura calendar system and date-fns library.
## Installation
```bash
npm install taqwim-core-utils
```## Usage
```javascript
import { toHijri } from 'taqwim-core-utils'const gregorianDate = new Date('2024-03-11')
const hijriDate = toHijri(gregorianDate)
console.log(hijriDate) // { hy: 1445, hm:9, hd: 1 }
```## API
- [Full API Documentation](docs/api/globals.md)