ko-chrono 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +256 -2
- package/dist/cjs/event.d.ts +18 -0
- package/dist/cjs/event.js +31 -0
- package/dist/cjs/index.d.ts +55 -0
- package/dist/cjs/index.js +189 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/parsers/absoluteDate.d.ts +3 -0
- package/dist/cjs/parsers/absoluteDate.js +95 -0
- package/dist/cjs/parsers/duration.d.ts +3 -0
- package/dist/cjs/parsers/duration.js +45 -0
- package/dist/cjs/parsers/holiday.d.ts +3 -0
- package/dist/cjs/parsers/holiday.js +64 -0
- package/dist/cjs/parsers/offset.d.ts +3 -0
- package/dist/cjs/parsers/offset.js +64 -0
- package/dist/cjs/parsers/recurrence.d.ts +5 -0
- package/dist/cjs/parsers/recurrence.js +117 -0
- package/dist/cjs/parsers/relativeDay.d.ts +3 -0
- package/dist/cjs/parsers/relativeDay.js +26 -0
- package/dist/cjs/parsers/relativeMonth.d.ts +3 -0
- package/dist/cjs/parsers/relativeMonth.js +30 -0
- package/dist/cjs/parsers/relativeYear.d.ts +3 -0
- package/dist/cjs/parsers/relativeYear.js +30 -0
- package/dist/cjs/parsers/time.d.ts +3 -0
- package/dist/cjs/parsers/time.js +149 -0
- package/dist/cjs/parsers/weekday.d.ts +3 -0
- package/dist/cjs/parsers/weekday.js +109 -0
- package/dist/cjs/resolve.d.ts +21 -0
- package/dist/cjs/resolve.js +414 -0
- package/dist/cjs/types.d.ts +105 -0
- package/dist/cjs/types.js +2 -0
- package/dist/cjs/util/lunarHolidays.d.ts +3 -0
- package/dist/cjs/util/lunarHolidays.js +16 -0
- package/dist/cjs/util/number.d.ts +5 -0
- package/dist/cjs/util/number.js +42 -0
- package/dist/cjs/util/timezone.d.ts +4 -0
- package/dist/cjs/util/timezone.js +55 -0
- package/dist/event.d.ts +18 -0
- package/dist/event.js +28 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.js +183 -0
- package/dist/parsers/absoluteDate.d.ts +3 -0
- package/dist/parsers/absoluteDate.js +91 -0
- package/dist/parsers/duration.d.ts +3 -0
- package/dist/parsers/duration.js +41 -0
- package/dist/parsers/holiday.d.ts +3 -0
- package/dist/parsers/holiday.js +60 -0
- package/dist/parsers/offset.d.ts +3 -0
- package/dist/parsers/offset.js +60 -0
- package/dist/parsers/recurrence.d.ts +5 -0
- package/dist/parsers/recurrence.js +112 -0
- package/dist/parsers/relativeDay.d.ts +3 -0
- package/dist/parsers/relativeDay.js +22 -0
- package/dist/parsers/relativeMonth.d.ts +3 -0
- package/dist/parsers/relativeMonth.js +26 -0
- package/dist/parsers/relativeYear.d.ts +3 -0
- package/dist/parsers/relativeYear.js +26 -0
- package/dist/parsers/time.d.ts +3 -0
- package/dist/parsers/time.js +145 -0
- package/dist/parsers/weekday.d.ts +3 -0
- package/dist/parsers/weekday.js +105 -0
- package/dist/resolve.d.ts +21 -0
- package/dist/resolve.js +405 -0
- package/dist/types.d.ts +105 -0
- package/dist/types.js +1 -0
- package/dist/util/lunarHolidays.d.ts +3 -0
- package/dist/util/lunarHolidays.js +13 -0
- package/dist/util/number.d.ts +5 -0
- package/dist/util/number.js +39 -0
- package/dist/util/timezone.d.ts +4 -0
- package/dist/util/timezone.js +51 -0
- package/package.json +40 -4
package/package.json
CHANGED
|
@@ -1,6 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ko-chrono",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "한국어 자연어 날짜/시간 파서 — '다음주 화요일 오후 3시' → Date",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/cjs/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"require": {
|
|
16
|
+
"types": "./dist/cjs/index.d.ts",
|
|
17
|
+
"default": "./dist/cjs/index.js"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"sideEffects": false,
|
|
22
|
+
"files": ["dist", "README.md", "LICENSE"],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "tsc -p tsconfig.build.json && tsc -p tsconfig.cjs.json && node scripts/mark-cjs.mjs",
|
|
25
|
+
"test": "vitest run",
|
|
26
|
+
"test:watch": "vitest",
|
|
27
|
+
"typecheck": "tsc --noEmit",
|
|
28
|
+
"playground": "npm run build && npx serve ."
|
|
29
|
+
},
|
|
30
|
+
"keywords": ["korean", "한국어", "date", "parser", "natural-language", "날짜", "nlp", "chrono"],
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/jwn7/ko-chrono.git"
|
|
35
|
+
},
|
|
36
|
+
"homepage": "https://github.com/jwn7/ko-chrono#readme",
|
|
37
|
+
"bugs": "https://github.com/jwn7/ko-chrono/issues",
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"typescript": "^5.6.0",
|
|
40
|
+
"vitest": "^2.1.0"
|
|
41
|
+
}
|
|
42
|
+
}
|