1.0.25 • Published 7 years ago

hijri-js v1.0.25

Weekly downloads
20
License
MIT
Repository
github
Last release
7 years ago

hijri-js

npm TypeScript

xsoh's Hijri.js for Nodejs

This package provides JavaScript, TypeScript and script build files for npm.

Hijri.js

A simple implementation for the Islamic calender(Hijri) in Javascript with types.

Install

The best way to install and use hijri-js is with npm or yarn package managment. It's registered as hijri-js.

npm

$ npm install hijri-js --save

yarn

$ yarn add hijri-js --save

Usage

Current day in hijri or other conversions

To get Today in Hijri:

const hijri = require('hijri-js')

run();

function run() {
    const x = hijri.initialize();
    
    console.log(' today      ==> ', x.today().full )
    console.log(' 24-10-2017 ==> ', x.toHijri('24102017').plain );
    console.log(' 24-10-2017 ==> ', x.toHijri('24/10/2017', '/') );
    console.log(' 11-07-1386 ==> ', x.toGregorian('11-7-1386', '-') );    
}

From sources

If you want to use the development version of the plugin, build from source manually. The development version may be unstable.

$ git clone https://github.com/bugyboo/hijri-js.git
$ cd hijri-js
$ yarn install
$ npm run build

Examples

Comming soon..! Node.Js express example on how to consume this libraray.

1.0.25

7 years ago

1.0.22

7 years ago

1.0.21

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago