kalender-indonesia
v1.1.0
Published
Kalender Indonesia (https://kalenderindonesia.com)
Downloads
194
Maintainers
Readme
Kalender Indonesia
Kalender Indonesia Masehi, Hijriyah dengan Libur Nasional tahun 1900 sampai 2100.
Instalasi/Pemasangan
npm i kalender-indonesia
Penggunaan
const kalender = require('kalender-indonesia');
const { CalendarType } = require("kalender-indonesia/lib/opt");
const options = {
timezone: 7,
latitude: -6.9128,
longitude: 107.6206,
altitude: 10,
weeklyFormat: true,
include: {
calendarTypes: [
CalendarType.MASEHI, // atau 0
CalendarType.HIJRIYAH, // atau 1
],
addHolidays: [
{
date: '2023-09-09',
name: 'birthday',
description: 'Ulang Tahun'
}
],
addLeaves: [
{
date: '2023-09-10',
name: 'birthday',
description: 'Cuti Ulang Tahun'
}
],
remHolidays: [
{
date: '2023-01-01'
}
],
remLeaves: [
{
date: '2023-05-05'
}
],
showHoliday: true,
showLeave: true,
showImsakiyah: true
}
};
kalender.Options(options);
const kalenderMasehi = kalender.KalenderMasehi(2023);
console.log('kalenderMasehi', JSON.stringify(kalenderMasehi));
const kalenderHijriyah = kalender.KalenderHijriyah(1444);
console.log('kalenderHijriyah', JSON.stringify(kalenderHijriyah));
const liburMasehi = kalender.LiburMasehi(2023);
console.log('liburMasehi', JSON.stringify(liburMasehi));
Situs Web
Pengembang
Donasi
Crypto:
ETH (ERC20)/BNB (BEP20): 0x12c930700efe92d466fece53eac424410b56f29a
BTC: 1NfrjEq4Ac6gTmcnAkEraFrAwoQ6MKQ4B8
Bank:
BCA: 8105216927