
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
holidays-kr
Advanced tools
$ npm install holidays-kr
혹은
$ yarn add holidays-kr
import HolidaysKr from 'holidays-kr';
HolidaysKr.serviceKey = 'your-service-key'; // 디코딩된 서비스키를 사용해야 합니다.
const holidays = await HolidaysKr.getHolidays({
year: 2023, // 수집 시작 연도
month: 5, // 수집 시작 월
monthCount: 3 // 수집 월 갯수
});
console.log(holidays); // 2018.11 ~ 2019.8 데이터
getHolidays는 다음과 같은 옵션을 받습니다.
| 옵션 | 설명 |
|---|---|
| year | 가져오려는 공휴일의 년도 |
| month | 가져오려는 공휴일의 월 |
| monthCount | month로부터 몇 개월치 공휴일을 가져올지 (기본값은 1) |
반환 값은 다음과 같은 속성을 가진 객체의 배열입니다.
| 속성 | 설명 |
|---|---|
| name | 공휴일의 이름 |
| year | 공휴일의 년도 |
| month | 공휴일의 월 |
| day | 공휴일의 일 |
| dateStr | 'YYYY-MM-DD' 형식의 날짜 문자열 |
FAQs
data.go.kr 데이터 기반 공휴일 수집
The npm package holidays-kr receives a total of 353 weekly downloads. As such, holidays-kr popularity was classified as not popular.
We found that holidays-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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.