trainfinder 1.0.3 → 1.0.4

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 (2) hide show
  1. package/README.md +32 -19
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,56 +1,69 @@
1
1
  # TrainFinder CLI
2
2
 
3
- `TrainFinder`는 한국의 **국내 기차(고속선) 정보**를 조회할 있는 **터미널용 CLI 라이브러리**입니다.
4
- 출발역/도착역과 날짜 기반으로 기차 조회를 있습니다.
3
+ `TrainFinder` is a **terminal-based CLI library** that allows you to search for **domestic high-speed train information in South Korea**.
4
+ You can search for trains based on **departure station, arrival station, and date**.
5
5
 
6
6
  ---
7
7
 
8
- ## ⚡ 설치
8
+ ## ⚡ Installation
9
9
 
10
10
  ```bash
11
11
  npm install -g trainfinder
12
12
  ```
13
13
 
14
- ## 기차 종류 조회
15
- ktx, ktx산천A, ktx산천B, ktx이음, srt, ktx청룡
14
+ ## 🚄 Train Types
15
+
16
+ > ⚠️ Only the train types listed below are accepted as valid input.
17
+
18
+ - ktx
19
+ - ktx산천A
20
+ - ktx산천B
21
+ - ktx이음
22
+ - srt
23
+ - ktx청룡
16
24
 
17
25
  ```bash
18
26
  trainfinder trainlist
19
27
  ```
20
28
 
21
- ## 기차역 조회
29
+ ## 🚉 Station List
22
30
  ```bash
23
31
  trainfinder stationlist
24
32
  ```
25
33
 
26
- ## 기차역 존재 유무 조회
34
+ ## 🔍 Check Station Existence
35
+ > Check whether a station exists.
36
+ > ⚠️ **Station names must be entered in Korean.**
37
+
27
38
  ```bash
28
- trainfinder station --st <역이름>
39
+ trainfinder station --st <station_name>
29
40
 
30
41
  # 예시
31
42
  trainfinder station --st 수서
32
43
  ```
33
44
 
34
45
  ## 기차 조회
46
+ > Search for trains based on departure station, arrival station, and date.
35
47
 
36
- 출발역, 도착역, 날짜를 기반으로 기차 조회
37
-
38
- - 옵션 설명
39
- --dep : 출발역 코드
48
+ | Option | Description | Default |
49
+ | --------- | ------------------------- | ------- |
50
+ | `--dep` | Departure station name | — |
51
+ | `--arr` | Arrival station name | — |
52
+ | `--date` | Date to search (YYYYMMDD) | Today |
53
+ | `--train` | Train type | ktx |
40
54
 
41
- --arr : 도착역 코드
42
-
43
- --date : 조회할 날짜 (기본값: 오늘 날짜)
44
-
45
- --train : 열차 종류 (기본값: ktx)
46
55
 
47
56
 
48
57
  ```bash
49
- trainfinder search --dep <출발역 이름> --arr <도착역 이름> --date <YYYYMMDD> --train <열차종류>
58
+ trainfinder search \
59
+ --dep <departure_station> \
60
+ --arr <arrival_station> \
61
+ --date <YYYYMMDD> \
62
+ --train <train_type>
50
63
  ```
51
64
 
52
65
  ```bash
53
- # 예시
66
+ # Example
54
67
  trainfinder search --dep 서울 --arr 오송 --date 20251212 --train ktx
55
68
  ```
56
69
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trainfinder",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "KTX/SRT 실시간 열차 조회 CLI 도구",
5
5
  "author": "junseok oh",
6
6
  "license": "MIT",