KTX/SRT Real-Time Train CLI
npm install trainfinder
TrainFinder is a terminal-based CLI library that allows you to search for domestic all train information in South Korea.
You can search for trains based on departure station, arrival station, and date.
---
``bash`
npm install -g trainfinder
> β οΈ Only the train types listed below are accepted as valid input.
- normal (ITX-μ²μΆ, ITX-μλ§μ, ITX-λ§μ, 무κΆννΈ, μλ§μνΈ, ν΅κ·Όμ΄μ°¨, λ리λ‘, AREXμ§ν΅)
- ktx (KTX-μ°μ², KTX-μ΄μ, KTX-μ²λ£‘ )
- srt
bash
trainfinder stationlist
`π Check Station Existence
> β οΈ Station names must be entered in Korean.`bash
trainfinder station --st Example
trainfinder station --st μμ
`π Train Search
> Search for trains based on departure station, arrival station, and date.| Option | Description | Default |
| --------- | ------------------------- | -------- |
|
--dep | Departure station name | β |
| --arr | Arrival station name | β |
| --date | Date to search (YYYYMMDD) | Today |
| --train | Train type | ktx |
| --time | After time list (Optional)| 00 (00~24)|
`bash
trainfinder search \
--dep \
--arr \
--date \
--train \
--time ``bash
Example
trainfinder search --dep μμΈ --arr μ€μ‘ --date 20251212 --train ktx --time 13 (optional)
``