Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dalwadani/hijri-converter
Convert between Hijri (Um Alqura) and Gregorian
https://github.com/dalwadani/hijri-converter
hijri hijri-dates-converter
Last synced: 26 days ago
JSON representation
Convert between Hijri (Um Alqura) and Gregorian
- Host: GitHub
- URL: https://github.com/dalwadani/hijri-converter
- Owner: dalwadani
- License: mit
- Created: 2018-08-07T19:04:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-06T10:53:19.000Z (about 4 years ago)
- Last Synced: 2024-11-11T19:24:11.412Z (about 1 month ago)
- Topics: hijri, hijri-dates-converter
- Language: JavaScript
- Size: 35.2 KB
- Stars: 14
- Watchers: 4
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-arabic - Hijri Converter - Convert between Hijri (Um Alqura) and Gregorian [NPM](https://www.npmjs.com/package/hijri-converter). (Programming Languages)
README
# hijri-converter
This simple package exposes functions to convert between Hijri and Gregorian.
## InstallThe best way to install and use hijri-converter is with npm or yarn.
#### npm
```
$ npm install hijri-converter
```#### yarn
```
$ yarn add hijri-converter
```## Usage
``` Node.jsimport { toHijri, toGregorian } from "hijri-converter";
toHijri(1987,3,1) // convert 1st of March, 1987 to Hijri
toGregorian(1407,7,1) // convert 1st of Rajab, 1407 to Gregorian
```