Security News
OpenJS: “XZ Utils Cyberattack Likely Not an Isolated Incident”
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
holiday-kr
Advanced tools
한국 기준 음력, 양력 변환 및 휴일 체크
Weekly downloads
Readme
getLunar(Date) or getLunar(year, month, day) : 양력 -> 음력 변환. 결과 : object
holidayKR.getLunar(2016, 1, 1);
//{ year: 2015, month: 11, day: 22, leapMonth: false, dayOfWeek: '금' }
holidayKR.getLunar(new Date(2016, 0, 1));
//{ year: 2015, month: 11, day: 22, leapMonth: false, dayOfWeek: '금' }
getSolar(Date) or getSolar(year, month, day, isLeapMonth) : 음력 -> 양력 변환. 결과 : object
var holidayKR = require('holiday-kr');
holidayKR.getSolar(2015, 11, 22);
//result : { year: 2016, month: 1, day: 1, leapMonth: false, dayOfWeek: '금' }
holidayKR.getSolar(new Date(2015, 10, 22));
//result : { year: 2016, month: 1, day: 1, leapMonth: false, dayOfWeek: '금' }
휴일 기준
isSolarHoliday(Date) or isSolarHoliday(year, month, day) : 입력된 양력 날짜 기준으로 휴일인지 체크. 휴일 기준은 위 명시된 날만 해당함. 결과 : boolean
var holidayKR = require('holiday-kr');
holidayKR.isSolarHoliday(2016, 1, 1);
//true
holidayKR.isSolarHoliday(new Date(2016, 0, 2));
//false
isLunarHoliday(Date) or isLunarHoliday(year, month, day, isLeapMonth) : 입력된 음력 날짜 기준으로 휴일인지 체크. 휴일 기준은 위 명시된 날만 해당함. 결과 : boolean
var holidayKR = require('holiday-kr');
holidayKR.isLunarHoliday(2016, 1, 1);
//true
holidayKR.isLunarHoliday(new Date(2016, 0, 2));
//true
FAQs
한국 기준 음력, 양력 변환 및 휴일 체크
The npm package holiday-kr receives a total of 130 weekly downloads. As such, holiday-kr popularity was classified as not popular.
We found that holiday-kr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
Company News
Come meet the Socket team at BSidesSF and RSA! We're sponsoring several fun networking events and we would love to see you there.
Security News
OSI is starting a conversation aimed at removing the excuse of the SaaS loophole for companies navigating licensing and the complexities of doing business with open source.