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.
Files changed (72) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +256 -2
  3. package/dist/cjs/event.d.ts +18 -0
  4. package/dist/cjs/event.js +31 -0
  5. package/dist/cjs/index.d.ts +55 -0
  6. package/dist/cjs/index.js +189 -0
  7. package/dist/cjs/package.json +1 -0
  8. package/dist/cjs/parsers/absoluteDate.d.ts +3 -0
  9. package/dist/cjs/parsers/absoluteDate.js +95 -0
  10. package/dist/cjs/parsers/duration.d.ts +3 -0
  11. package/dist/cjs/parsers/duration.js +45 -0
  12. package/dist/cjs/parsers/holiday.d.ts +3 -0
  13. package/dist/cjs/parsers/holiday.js +64 -0
  14. package/dist/cjs/parsers/offset.d.ts +3 -0
  15. package/dist/cjs/parsers/offset.js +64 -0
  16. package/dist/cjs/parsers/recurrence.d.ts +5 -0
  17. package/dist/cjs/parsers/recurrence.js +117 -0
  18. package/dist/cjs/parsers/relativeDay.d.ts +3 -0
  19. package/dist/cjs/parsers/relativeDay.js +26 -0
  20. package/dist/cjs/parsers/relativeMonth.d.ts +3 -0
  21. package/dist/cjs/parsers/relativeMonth.js +30 -0
  22. package/dist/cjs/parsers/relativeYear.d.ts +3 -0
  23. package/dist/cjs/parsers/relativeYear.js +30 -0
  24. package/dist/cjs/parsers/time.d.ts +3 -0
  25. package/dist/cjs/parsers/time.js +149 -0
  26. package/dist/cjs/parsers/weekday.d.ts +3 -0
  27. package/dist/cjs/parsers/weekday.js +109 -0
  28. package/dist/cjs/resolve.d.ts +21 -0
  29. package/dist/cjs/resolve.js +414 -0
  30. package/dist/cjs/types.d.ts +105 -0
  31. package/dist/cjs/types.js +2 -0
  32. package/dist/cjs/util/lunarHolidays.d.ts +3 -0
  33. package/dist/cjs/util/lunarHolidays.js +16 -0
  34. package/dist/cjs/util/number.d.ts +5 -0
  35. package/dist/cjs/util/number.js +42 -0
  36. package/dist/cjs/util/timezone.d.ts +4 -0
  37. package/dist/cjs/util/timezone.js +55 -0
  38. package/dist/event.d.ts +18 -0
  39. package/dist/event.js +28 -0
  40. package/dist/index.d.ts +55 -0
  41. package/dist/index.js +183 -0
  42. package/dist/parsers/absoluteDate.d.ts +3 -0
  43. package/dist/parsers/absoluteDate.js +91 -0
  44. package/dist/parsers/duration.d.ts +3 -0
  45. package/dist/parsers/duration.js +41 -0
  46. package/dist/parsers/holiday.d.ts +3 -0
  47. package/dist/parsers/holiday.js +60 -0
  48. package/dist/parsers/offset.d.ts +3 -0
  49. package/dist/parsers/offset.js +60 -0
  50. package/dist/parsers/recurrence.d.ts +5 -0
  51. package/dist/parsers/recurrence.js +112 -0
  52. package/dist/parsers/relativeDay.d.ts +3 -0
  53. package/dist/parsers/relativeDay.js +22 -0
  54. package/dist/parsers/relativeMonth.d.ts +3 -0
  55. package/dist/parsers/relativeMonth.js +26 -0
  56. package/dist/parsers/relativeYear.d.ts +3 -0
  57. package/dist/parsers/relativeYear.js +26 -0
  58. package/dist/parsers/time.d.ts +3 -0
  59. package/dist/parsers/time.js +145 -0
  60. package/dist/parsers/weekday.d.ts +3 -0
  61. package/dist/parsers/weekday.js +105 -0
  62. package/dist/resolve.d.ts +21 -0
  63. package/dist/resolve.js +405 -0
  64. package/dist/types.d.ts +105 -0
  65. package/dist/types.js +1 -0
  66. package/dist/util/lunarHolidays.d.ts +3 -0
  67. package/dist/util/lunarHolidays.js +13 -0
  68. package/dist/util/number.d.ts +5 -0
  69. package/dist/util/number.js +39 -0
  70. package/dist/util/timezone.d.ts +4 -0
  71. package/dist/util/timezone.js +51 -0
  72. package/package.json +40 -4
package/package.json CHANGED
@@ -1,6 +1,42 @@
1
1
  {
2
2
  "name": "ko-chrono",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
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
+ }