@hyunbinseo/holidays-kr 3.2027.0 → 5.2027.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -59
- package/dist/2018-CHZjwTM_.js +28 -0
- package/dist/2019-_6NrILve.js +26 -0
- package/dist/2020-CqFVgEif.js +28 -0
- package/dist/2021-C5PWxTCA.js +28 -0
- package/dist/2022-CLgZmPxy.js +29 -0
- package/dist/2023-D7s4YeXp.js +28 -0
- package/dist/2024-BjGDilD3.js +29 -0
- package/dist/2025-Ct_fzTJp.js +29 -0
- package/dist/2026-CCnV5XUt.js +32 -0
- package/dist/2027-B0ejo23X.js +34 -0
- package/dist/{index.d.cts → all.d.ts} +1 -7
- package/dist/all.js +11 -0
- package/dist/index.d.ts +5 -237
- package/dist/index.js +22 -278
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/package.json +13 -13
- package/dist/index.cjs +0 -297
package/README.md
CHANGED
|
@@ -2,117 +2,134 @@
|
|
|
2
2
|
|
|
3
3
|
우주항공청에서 발표한 월력요항을 사용합니다. [English](#usage)
|
|
4
4
|
|
|
5
|
-
- `Date` 객체의 공휴일 여부와 그 명칭들을
|
|
5
|
+
- `Date` 객체의 공휴일 여부와 그 명칭들을 확인합니다
|
|
6
6
|
- `CSV`, `JSON`, `ICS`, 캘린더 구독도 제공됩니다. [링크](https://github.com/hyunbinseo/holidays-kr#readme)
|
|
7
7
|
|
|
8
|
+
API는 연도별 공휴일 정보를 동적으로 불러오며, 데이터가 존재하지 않으면 `RangeError`를 던집니다.
|
|
9
|
+
|
|
8
10
|
```js
|
|
9
|
-
// 최근 2개년도의 공휴일 정보가 들어있습니다.
|
|
10
|
-
// 예를 들어 v3.2025 버전으로 2024-2025년의 날짜를 확인할 수 있습니다.
|
|
11
11
|
import { getHolidayNames, isHoliday } from '@hyunbinseo/holidays-kr';
|
|
12
12
|
|
|
13
13
|
// 공휴일 여부
|
|
14
|
-
isHoliday(new Date('
|
|
15
|
-
isHoliday(new Date('
|
|
16
|
-
isHoliday(new Date('2023-01-01T00:00:00+0900')); // RangeError
|
|
14
|
+
await isHoliday(new Date('2026-01-01T00:00:00+0900')); // true
|
|
15
|
+
await isHoliday(new Date('2026-01-02T00:00:00+0900')); // false
|
|
17
16
|
|
|
18
17
|
// 공휴일 명칭(들)
|
|
19
|
-
getHolidayNames(new Date('
|
|
20
|
-
getHolidayNames(new Date('
|
|
18
|
+
await getHolidayNames(new Date('2026-05-05T00:00:00+0900')); // ['어린이날']
|
|
19
|
+
await getHolidayNames(new Date('2026-05-04T00:00:00+0900')); // null
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
import { getHolidayPreset } from '@hyunbinseo/holidays-kr';
|
|
24
|
+
|
|
25
|
+
const y2026 = await getHolidayPreset('2026');
|
|
26
|
+
'2026-01-01' in y2026; // true
|
|
27
|
+
'2026-01-02' in y2026; // false
|
|
21
28
|
```
|
|
22
29
|
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
```jsonc
|
|
31
|
+
// y2026의 형태:
|
|
32
|
+
{
|
|
33
|
+
"2026-01-01": ["1월 1일"],
|
|
34
|
+
// ...
|
|
35
|
+
"2026-12-25": ["기독탄신일"],
|
|
36
|
+
}
|
|
37
|
+
```
|
|
25
38
|
|
|
26
39
|
---
|
|
27
40
|
|
|
28
41
|
## Usage
|
|
29
42
|
|
|
30
|
-
|
|
43
|
+
APIs dynamically load yearly presets. `RangeError` is thrown if not available.
|
|
31
44
|
|
|
32
45
|
```js
|
|
33
|
-
|
|
34
|
-
import { y2025 } from '@hyunbinseo/holidays-kr';
|
|
35
|
-
const { y2025 } = require('@hyunbinseo/holidays-kr');
|
|
36
|
-
```
|
|
46
|
+
import { isHoliday } from '@hyunbinseo/holidays-kr';
|
|
37
47
|
|
|
38
|
-
|
|
48
|
+
// Jan 01 2026 00:00:00 GMT+0900 is a holiday in ROK
|
|
49
|
+
await isHoliday(new Date('2026-01-01T00:00:00+0900')); // true
|
|
50
|
+
|
|
51
|
+
// Be cautious with the date's time zone!
|
|
52
|
+
// Dec 31 2025 23:00:00 GMT+0900 is not a holiday in ROK
|
|
53
|
+
await isHoliday(new Date('2026-01-01T00:00:00+1000')); // false
|
|
54
|
+
```
|
|
39
55
|
|
|
40
56
|
```js
|
|
41
|
-
import {
|
|
57
|
+
import { getHolidayNames } from '@hyunbinseo/holidays-kr';
|
|
42
58
|
|
|
43
|
-
'
|
|
44
|
-
'
|
|
59
|
+
await getHolidayNames(new Date('2026-05-05T00:00:00+0900')); // ['어린이날']
|
|
60
|
+
await getHolidayNames(new Date('2026-05-04T00:00:00+0900')); // null
|
|
61
|
+
```
|
|
45
62
|
|
|
46
|
-
|
|
47
|
-
'
|
|
63
|
+
```js
|
|
64
|
+
import { getHolidayPreset } from '@hyunbinseo/holidays-kr';
|
|
65
|
+
|
|
66
|
+
const y2026 = await getHolidayPreset('2026');
|
|
67
|
+
'2026-01-01' in y2026; // true
|
|
68
|
+
'2026-01-02' in y2026; // false
|
|
48
69
|
```
|
|
49
70
|
|
|
50
71
|
```jsonc
|
|
51
|
-
//
|
|
72
|
+
// y2026 shape:
|
|
52
73
|
{
|
|
53
|
-
"
|
|
54
|
-
"2025-01-28": ["설날 전날"],
|
|
74
|
+
"2026-01-01": ["1월 1일"],
|
|
55
75
|
// ...
|
|
56
|
-
"
|
|
76
|
+
"2026-12-25": ["기독탄신일"],
|
|
57
77
|
}
|
|
58
78
|
```
|
|
59
79
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
```js
|
|
63
|
-
// Uses the latest 2 years of holiday data.
|
|
64
|
-
// e.g. v3.2025 supports dates in the year 2024-2025
|
|
65
|
-
// Supports tree-shaking: unused data is not bundled.
|
|
66
|
-
import { isHoliday } from '@hyunbinseo/holidays-kr';
|
|
80
|
+
## Migration
|
|
67
81
|
|
|
68
|
-
|
|
69
|
-
isHoliday(new Date('2025-01-01T00:00:00+0900')); // true
|
|
82
|
+
### 5.x
|
|
70
83
|
|
|
71
|
-
|
|
72
|
-
// Dec 31 2024 23:00:00 GMT+0900 is not a holiday in ROK.
|
|
73
|
-
isHoliday(new Date('2025-01-01T00:00:00+1000')); // false
|
|
84
|
+
`getHolidayPreset` is now the recommended API for loading yearly presets:
|
|
74
85
|
|
|
75
|
-
|
|
76
|
-
|
|
86
|
+
```js
|
|
87
|
+
import { getHolidayPreset } from '@hyunbinseo/holidays-kr';
|
|
88
|
+
const y2026 = await getHolidayPreset('2026');
|
|
77
89
|
```
|
|
78
90
|
|
|
79
|
-
|
|
80
|
-
// Trailing E stands for extended.
|
|
81
|
-
// Uses holiday data from the year 2022.
|
|
82
|
-
// e.g. v3.2025 supports dates in the year 2022-2025
|
|
83
|
-
import { isHolidayE } from '@hyunbinseo/holidays-kr';
|
|
91
|
+
Static `y20XX` named exports have been moved to the `./all` subpath:
|
|
84
92
|
|
|
85
|
-
|
|
93
|
+
```diff
|
|
94
|
+
- import { y2026 } from '@hyunbinseo/holidays-kr';
|
|
95
|
+
+ import { y2026 } from '@hyunbinseo/holidays-kr/all';
|
|
86
96
|
```
|
|
87
97
|
|
|
88
|
-
|
|
98
|
+
### 4.x
|
|
89
99
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
100
|
+
- ESM only. No longer includes CJS output
|
|
101
|
+
- `isHoliday` and `getHolidayNames` have become async
|
|
102
|
+
- `isHolidayE` and `getHolidayNamesE` have been removed
|
|
103
|
+
- Holiday presets are dynamically imported per year
|
|
93
104
|
|
|
94
|
-
|
|
95
|
-
|
|
105
|
+
```diff
|
|
106
|
+
- isHoliday(date);
|
|
107
|
+
- isHolidayE(date);
|
|
108
|
+
+ await isHoliday(date);
|
|
96
109
|
```
|
|
97
110
|
|
|
98
|
-
|
|
111
|
+
```diff
|
|
112
|
+
- getHolidayNames(date);
|
|
113
|
+
- getHolidayNamesE(date);
|
|
114
|
+
+ await getHolidayNames(date);
|
|
115
|
+
```
|
|
99
116
|
|
|
100
117
|
### 3.x
|
|
101
118
|
|
|
102
|
-
- `/public` directory is no longer included
|
|
103
|
-
- `TypeError` is thrown instead of being returned
|
|
104
|
-
- `RangeError` is thrown instead of returning `null
|
|
105
|
-
- `isHoliday` uses the latest 2 years of holiday data
|
|
106
|
-
- `isHoliday` no longer supports the `options` parameter
|
|
119
|
+
- `/public` directory is no longer included
|
|
120
|
+
- `TypeError` is thrown instead of being returned
|
|
121
|
+
- `RangeError` is thrown instead of returning `null`
|
|
122
|
+
- `isHoliday` uses the latest 2 years of holiday data
|
|
123
|
+
- `isHoliday` no longer supports the `options` parameter
|
|
107
124
|
|
|
108
125
|
```diff
|
|
109
|
-
# Yearly holidays changed from a Map to an Object
|
|
126
|
+
# Yearly holidays changed from a Map to an Object
|
|
110
127
|
- y2025.has('2025-01-01');
|
|
111
128
|
+ '2025-01-01' in y2025;
|
|
112
129
|
```
|
|
113
130
|
|
|
114
131
|
```js
|
|
115
|
-
// Check the day value of a `Date` object
|
|
132
|
+
// Check the day value of a `Date` object
|
|
116
133
|
import { dateToDayWithOffset } from '@hyunbinseo/tools';
|
|
117
134
|
const date = new Date('2023-01-07T00:00:00+0900');
|
|
118
135
|
dateToDayWithOffset(date, '+09:00'); // 6 - Saturday
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
//#region src/holidays/2018.ts
|
|
3
|
+
var _2018_exports = /* @__PURE__ */ __exportAll({
|
|
4
|
+
default: () => y2018,
|
|
5
|
+
y2018: () => y2018
|
|
6
|
+
});
|
|
7
|
+
const y2018 = {
|
|
8
|
+
"2018-01-01": ["1월 1일"],
|
|
9
|
+
"2018-02-15": ["설날 전날"],
|
|
10
|
+
"2018-02-16": ["설날"],
|
|
11
|
+
"2018-02-17": ["설날 다음 날"],
|
|
12
|
+
"2018-03-01": ["3ㆍ1절"],
|
|
13
|
+
"2018-05-05": ["어린이날"],
|
|
14
|
+
"2018-05-07": ["대체공휴일(어린이날)"],
|
|
15
|
+
"2018-05-22": ["부처님 오신 날"],
|
|
16
|
+
"2018-06-06": ["현충일"],
|
|
17
|
+
"2018-06-13": ["전국동시지방선거"],
|
|
18
|
+
"2018-08-15": ["광복절"],
|
|
19
|
+
"2018-09-23": ["추석 전날"],
|
|
20
|
+
"2018-09-24": ["추석"],
|
|
21
|
+
"2018-09-25": ["추석 다음 날"],
|
|
22
|
+
"2018-09-26": ["대체공휴일(추석)"],
|
|
23
|
+
"2018-10-03": ["개천절"],
|
|
24
|
+
"2018-10-09": ["한글날"],
|
|
25
|
+
"2018-12-25": ["기독탄신일"]
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { y2018 as n, _2018_exports as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
//#region src/holidays/2019.ts
|
|
3
|
+
var _2019_exports = /* @__PURE__ */ __exportAll({
|
|
4
|
+
default: () => y2019,
|
|
5
|
+
y2019: () => y2019
|
|
6
|
+
});
|
|
7
|
+
const y2019 = {
|
|
8
|
+
"2019-01-01": ["1월 1일"],
|
|
9
|
+
"2019-02-04": ["설날 전날"],
|
|
10
|
+
"2019-02-05": ["설날"],
|
|
11
|
+
"2019-02-06": ["설날 다음 날"],
|
|
12
|
+
"2019-03-01": ["3ㆍ1절"],
|
|
13
|
+
"2019-05-05": ["어린이날"],
|
|
14
|
+
"2019-05-06": ["대체공휴일(어린이날)"],
|
|
15
|
+
"2019-05-12": ["부처님 오신 날"],
|
|
16
|
+
"2019-06-06": ["현충일"],
|
|
17
|
+
"2019-08-15": ["광복절"],
|
|
18
|
+
"2019-09-12": ["추석 전날"],
|
|
19
|
+
"2019-09-13": ["추석"],
|
|
20
|
+
"2019-09-14": ["추석 다음 날"],
|
|
21
|
+
"2019-10-03": ["개천절"],
|
|
22
|
+
"2019-10-09": ["한글날"],
|
|
23
|
+
"2019-12-25": ["기독탄신일"]
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { y2019 as n, _2019_exports as t };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
//#region src/holidays/2020.ts
|
|
3
|
+
var _2020_exports = /* @__PURE__ */ __exportAll({
|
|
4
|
+
default: () => y2020,
|
|
5
|
+
y2020: () => y2020
|
|
6
|
+
});
|
|
7
|
+
const y2020 = {
|
|
8
|
+
"2020-01-01": ["1월 1일"],
|
|
9
|
+
"2020-01-24": ["설날 전날"],
|
|
10
|
+
"2020-01-25": ["설날"],
|
|
11
|
+
"2020-01-26": ["설날 다음 날"],
|
|
12
|
+
"2020-01-27": ["대체공휴일(설날)"],
|
|
13
|
+
"2020-03-01": ["3ㆍ1절"],
|
|
14
|
+
"2020-04-15": ["제21대 국회의원선거"],
|
|
15
|
+
"2020-04-30": ["부처님 오신 날"],
|
|
16
|
+
"2020-05-05": ["어린이날"],
|
|
17
|
+
"2020-06-06": ["현충일"],
|
|
18
|
+
"2020-08-15": ["광복절"],
|
|
19
|
+
"2020-08-17": ["임시공휴일"],
|
|
20
|
+
"2020-09-30": ["추석 전날"],
|
|
21
|
+
"2020-10-01": ["추석"],
|
|
22
|
+
"2020-10-02": ["추석 다음 날"],
|
|
23
|
+
"2020-10-03": ["개천절"],
|
|
24
|
+
"2020-10-09": ["한글날"],
|
|
25
|
+
"2020-12-25": ["기독탄신일"]
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { y2020 as n, _2020_exports as t };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
//#region src/holidays/2021.ts
|
|
3
|
+
var _2021_exports = /* @__PURE__ */ __exportAll({
|
|
4
|
+
default: () => y2021,
|
|
5
|
+
y2021: () => y2021
|
|
6
|
+
});
|
|
7
|
+
const y2021 = {
|
|
8
|
+
"2021-01-01": ["1월 1일"],
|
|
9
|
+
"2021-02-11": ["설날 전날"],
|
|
10
|
+
"2021-02-12": ["설날"],
|
|
11
|
+
"2021-02-13": ["설날 다음 날"],
|
|
12
|
+
"2021-03-01": ["3ㆍ1절"],
|
|
13
|
+
"2021-05-05": ["어린이날"],
|
|
14
|
+
"2021-05-19": ["부처님 오신 날"],
|
|
15
|
+
"2021-06-06": ["현충일"],
|
|
16
|
+
"2021-08-15": ["광복절"],
|
|
17
|
+
"2021-08-16": ["대체공휴일(광복절)"],
|
|
18
|
+
"2021-09-20": ["추석 전날"],
|
|
19
|
+
"2021-09-21": ["추석"],
|
|
20
|
+
"2021-09-22": ["추석 다음 날"],
|
|
21
|
+
"2021-10-03": ["개천절"],
|
|
22
|
+
"2021-10-04": ["대체공휴일(개천절)"],
|
|
23
|
+
"2021-10-09": ["한글날"],
|
|
24
|
+
"2021-10-11": ["대체공휴일(한글날)"],
|
|
25
|
+
"2021-12-25": ["기독탄신일"]
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { y2021 as n, _2021_exports as t };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
//#region src/holidays/2022.ts
|
|
3
|
+
var _2022_exports = /* @__PURE__ */ __exportAll({
|
|
4
|
+
default: () => y2022,
|
|
5
|
+
y2022: () => y2022
|
|
6
|
+
});
|
|
7
|
+
const y2022 = {
|
|
8
|
+
"2022-01-01": ["1월 1일"],
|
|
9
|
+
"2022-01-31": ["설날 전날"],
|
|
10
|
+
"2022-02-01": ["설날"],
|
|
11
|
+
"2022-02-02": ["설날 다음 날"],
|
|
12
|
+
"2022-03-01": ["3ㆍ1절"],
|
|
13
|
+
"2022-03-09": ["대통령선거"],
|
|
14
|
+
"2022-05-05": ["어린이날"],
|
|
15
|
+
"2022-05-08": ["부처님 오신 날"],
|
|
16
|
+
"2022-06-01": ["전국동시지방선거"],
|
|
17
|
+
"2022-06-06": ["현충일"],
|
|
18
|
+
"2022-08-15": ["광복절"],
|
|
19
|
+
"2022-09-09": ["추석 전날"],
|
|
20
|
+
"2022-09-10": ["추석"],
|
|
21
|
+
"2022-09-11": ["추석 다음 날"],
|
|
22
|
+
"2022-09-12": ["대체공휴일(추석)"],
|
|
23
|
+
"2022-10-03": ["개천절"],
|
|
24
|
+
"2022-10-09": ["한글날"],
|
|
25
|
+
"2022-10-10": ["대체공휴일(한글날)"],
|
|
26
|
+
"2022-12-25": ["기독탄신일"]
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { y2022 as n, _2022_exports as t };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
//#region src/holidays/2023.ts
|
|
3
|
+
var _2023_exports = /* @__PURE__ */ __exportAll({
|
|
4
|
+
default: () => y2023,
|
|
5
|
+
y2023: () => y2023
|
|
6
|
+
});
|
|
7
|
+
const y2023 = {
|
|
8
|
+
"2023-01-01": ["1월 1일"],
|
|
9
|
+
"2023-01-21": ["설날 전날"],
|
|
10
|
+
"2023-01-22": ["설날"],
|
|
11
|
+
"2023-01-23": ["설날 다음 날"],
|
|
12
|
+
"2023-01-24": ["대체공휴일(설날)"],
|
|
13
|
+
"2023-03-01": ["3ㆍ1절"],
|
|
14
|
+
"2023-05-05": ["어린이날"],
|
|
15
|
+
"2023-05-27": ["부처님 오신 날"],
|
|
16
|
+
"2023-05-29": ["대체공휴일(부처님 오신 날)"],
|
|
17
|
+
"2023-06-06": ["현충일"],
|
|
18
|
+
"2023-08-15": ["광복절"],
|
|
19
|
+
"2023-09-28": ["추석 전날"],
|
|
20
|
+
"2023-09-29": ["추석"],
|
|
21
|
+
"2023-09-30": ["추석 다음 날"],
|
|
22
|
+
"2023-10-02": ["임시공휴일"],
|
|
23
|
+
"2023-10-03": ["개천절"],
|
|
24
|
+
"2023-10-09": ["한글날"],
|
|
25
|
+
"2023-12-25": ["기독탄신일"]
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { y2023 as n, _2023_exports as t };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
//#region src/holidays/2024.ts
|
|
3
|
+
var _2024_exports = /* @__PURE__ */ __exportAll({
|
|
4
|
+
default: () => y2024,
|
|
5
|
+
y2024: () => y2024
|
|
6
|
+
});
|
|
7
|
+
const y2024 = {
|
|
8
|
+
"2024-01-01": ["1월 1일"],
|
|
9
|
+
"2024-02-09": ["설날 전날"],
|
|
10
|
+
"2024-02-10": ["설날"],
|
|
11
|
+
"2024-02-11": ["설날 다음 날"],
|
|
12
|
+
"2024-02-12": ["대체공휴일(설날)"],
|
|
13
|
+
"2024-03-01": ["3ㆍ1절"],
|
|
14
|
+
"2024-04-10": ["제22대국회의원선거"],
|
|
15
|
+
"2024-05-05": ["어린이날"],
|
|
16
|
+
"2024-05-06": ["대체공휴일(어린이날)"],
|
|
17
|
+
"2024-05-15": ["부처님 오신 날"],
|
|
18
|
+
"2024-06-06": ["현충일"],
|
|
19
|
+
"2024-08-15": ["광복절"],
|
|
20
|
+
"2024-09-16": ["추석 전날"],
|
|
21
|
+
"2024-09-17": ["추석"],
|
|
22
|
+
"2024-09-18": ["추석 다음 날"],
|
|
23
|
+
"2024-10-01": ["임시공휴일"],
|
|
24
|
+
"2024-10-03": ["개천절"],
|
|
25
|
+
"2024-10-09": ["한글날"],
|
|
26
|
+
"2024-12-25": ["기독탄신일"]
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { y2024 as n, _2024_exports as t };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
//#region src/holidays/2025.ts
|
|
3
|
+
var _2025_exports = /* @__PURE__ */ __exportAll({
|
|
4
|
+
default: () => y2025,
|
|
5
|
+
y2025: () => y2025
|
|
6
|
+
});
|
|
7
|
+
const y2025 = {
|
|
8
|
+
"2025-01-01": ["1월 1일"],
|
|
9
|
+
"2025-01-27": ["임시공휴일"],
|
|
10
|
+
"2025-01-28": ["설날 전날"],
|
|
11
|
+
"2025-01-29": ["설날"],
|
|
12
|
+
"2025-01-30": ["설날 다음 날"],
|
|
13
|
+
"2025-03-01": ["3ㆍ1절"],
|
|
14
|
+
"2025-03-03": ["대체공휴일(3ㆍ1절)"],
|
|
15
|
+
"2025-05-05": ["어린이날", "부처님 오신 날"],
|
|
16
|
+
"2025-05-06": ["대체공휴일(부처님 오신 날)"],
|
|
17
|
+
"2025-06-03": ["임시공휴일(대통령선거)"],
|
|
18
|
+
"2025-06-06": ["현충일"],
|
|
19
|
+
"2025-08-15": ["광복절"],
|
|
20
|
+
"2025-10-03": ["개천절"],
|
|
21
|
+
"2025-10-05": ["추석 전날"],
|
|
22
|
+
"2025-10-06": ["추석"],
|
|
23
|
+
"2025-10-07": ["추석 다음 날"],
|
|
24
|
+
"2025-10-08": ["대체공휴일(추석)"],
|
|
25
|
+
"2025-10-09": ["한글날"],
|
|
26
|
+
"2025-12-25": ["기독탄신일"]
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { y2025 as n, _2025_exports as t };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
//#region src/holidays/2026.ts
|
|
3
|
+
var _2026_exports = /* @__PURE__ */ __exportAll({
|
|
4
|
+
default: () => y2026,
|
|
5
|
+
y2026: () => y2026
|
|
6
|
+
});
|
|
7
|
+
const y2026 = {
|
|
8
|
+
"2026-01-01": ["1월 1일"],
|
|
9
|
+
"2026-02-16": ["설날 전날"],
|
|
10
|
+
"2026-02-17": ["설날"],
|
|
11
|
+
"2026-02-18": ["설날 다음 날"],
|
|
12
|
+
"2026-03-01": ["3ㆍ1절"],
|
|
13
|
+
"2026-03-02": ["대체공휴일(3ㆍ1절)"],
|
|
14
|
+
"2026-05-01": ["노동절"],
|
|
15
|
+
"2026-05-05": ["어린이날"],
|
|
16
|
+
"2026-05-24": ["부처님 오신 날"],
|
|
17
|
+
"2026-05-25": ["대체공휴일(부처님 오신 날)"],
|
|
18
|
+
"2026-06-03": ["전국동시지방선거"],
|
|
19
|
+
"2026-06-06": ["현충일"],
|
|
20
|
+
"2026-07-17": ["제헌절"],
|
|
21
|
+
"2026-08-15": ["광복절"],
|
|
22
|
+
"2026-08-17": ["대체공휴일(광복절)"],
|
|
23
|
+
"2026-09-24": ["추석 전날"],
|
|
24
|
+
"2026-09-25": ["추석"],
|
|
25
|
+
"2026-09-26": ["추석 다음 날"],
|
|
26
|
+
"2026-10-03": ["개천절"],
|
|
27
|
+
"2026-10-05": ["대체공휴일(개천절)"],
|
|
28
|
+
"2026-10-09": ["한글날"],
|
|
29
|
+
"2026-12-25": ["기독탄신일"]
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { y2026 as n, _2026_exports as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
//#region src/holidays/2027.ts
|
|
3
|
+
var _2027_exports = /* @__PURE__ */ __exportAll({
|
|
4
|
+
default: () => y2027,
|
|
5
|
+
y2027: () => y2027
|
|
6
|
+
});
|
|
7
|
+
const y2027 = {
|
|
8
|
+
"2027-01-01": ["1월 1일"],
|
|
9
|
+
"2027-02-06": ["설날 전날"],
|
|
10
|
+
"2027-02-07": ["설날"],
|
|
11
|
+
"2027-02-08": ["설날 다음 날"],
|
|
12
|
+
"2027-02-09": ["대체공휴일(설날)"],
|
|
13
|
+
"2027-03-01": ["3ㆍ1절"],
|
|
14
|
+
"2027-05-01": ["노동절"],
|
|
15
|
+
"2027-05-03": ["대체공휴일(노동절)"],
|
|
16
|
+
"2027-05-05": ["어린이날"],
|
|
17
|
+
"2027-05-13": ["부처님 오신 날"],
|
|
18
|
+
"2027-06-06": ["현충일"],
|
|
19
|
+
"2027-07-17": ["제헌절"],
|
|
20
|
+
"2027-07-19": ["대체공휴일(제헌절)"],
|
|
21
|
+
"2027-08-15": ["광복절"],
|
|
22
|
+
"2027-08-16": ["대체공휴일(광복절)"],
|
|
23
|
+
"2027-09-14": ["추석 전날"],
|
|
24
|
+
"2027-09-15": ["추석"],
|
|
25
|
+
"2027-09-16": ["추석 다음 날"],
|
|
26
|
+
"2027-10-03": ["개천절"],
|
|
27
|
+
"2027-10-04": ["대체공휴일(개천절)"],
|
|
28
|
+
"2027-10-09": ["한글날"],
|
|
29
|
+
"2027-10-11": ["대체공휴일(한글날)"],
|
|
30
|
+
"2027-12-25": ["기독탄신일"],
|
|
31
|
+
"2027-12-27": ["대체공휴일(기독탄신일)"]
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { y2027 as n, _2027_exports as t };
|
|
@@ -229,10 +229,4 @@ declare const y2027: {
|
|
|
229
229
|
readonly '2027-12-27': readonly ["대체공휴일(기독탄신일)"];
|
|
230
230
|
};
|
|
231
231
|
//#endregion
|
|
232
|
-
|
|
233
|
-
declare const getHolidayNames: (date: Date) => readonly string[] | null;
|
|
234
|
-
declare const getHolidayNamesE: (date: Date) => readonly string[] | null;
|
|
235
|
-
declare const isHoliday: (date: Date) => boolean;
|
|
236
|
-
declare const isHolidayE: (date: Date) => boolean;
|
|
237
|
-
//#endregion
|
|
238
|
-
export { getHolidayNames, getHolidayNamesE, isHoliday, isHolidayE, y2018, y2019, y2020, y2021, y2022, y2023, y2024, y2025, y2026, y2027 };
|
|
232
|
+
export { y2018, y2019, y2020, y2021, y2022, y2023, y2024, y2025, y2026, y2027 };
|
package/dist/all.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { n as y2018 } from "./2018-CHZjwTM_.js";
|
|
2
|
+
import { n as y2019 } from "./2019-_6NrILve.js";
|
|
3
|
+
import { n as y2020 } from "./2020-CqFVgEif.js";
|
|
4
|
+
import { n as y2021 } from "./2021-C5PWxTCA.js";
|
|
5
|
+
import { n as y2022 } from "./2022-CLgZmPxy.js";
|
|
6
|
+
import { n as y2023 } from "./2023-D7s4YeXp.js";
|
|
7
|
+
import { n as y2024 } from "./2024-BjGDilD3.js";
|
|
8
|
+
import { n as y2025 } from "./2025-Ct_fzTJp.js";
|
|
9
|
+
import { n as y2026 } from "./2026-CCnV5XUt.js";
|
|
10
|
+
import { n as y2027 } from "./2027-B0ejo23X.js";
|
|
11
|
+
export { y2018, y2019, y2020, y2021, y2022, y2023, y2024, y2025, y2026, y2027 };
|