{"id":13509120,"url":"https://github.com/lpgray/12306-cli","last_synced_at":"2025-05-07T14:08:30.566Z","repository":{"id":38854963,"uuid":"67056195","full_name":"lpgray/12306-cli","owner":"lpgray","description":"command line tool for 12306.cn 🚄","archived":false,"fork":false,"pushed_at":"2017-09-20T03:00:14.000Z","size":1095,"stargazers_count":55,"open_issues_count":0,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-07T14:08:22.383Z","etag":null,"topics":["12306","cli"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lpgray.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-31T16:48:30.000Z","updated_at":"2024-05-06T02:23:56.000Z","dependencies_parsed_at":"2022-08-22T21:40:42.581Z","dependency_job_id":null,"html_url":"https://github.com/lpgray/12306-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpgray%2F12306-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpgray%2F12306-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpgray%2F12306-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpgray%2F12306-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lpgray","download_url":"https://codeload.github.com/lpgray/12306-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252892503,"owners_count":21820648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["12306","cli"],"created_at":"2024-08-01T02:01:03.194Z","updated_at":"2025-05-07T14:08:30.545Z","avatar_url":"https://github.com/lpgray.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# 12306-cli\n\n\u003e 12306 修改了查询接口数据格式，本项目暂时不可用，请周知\n\n[![NPM Version](https://img.shields.io/npm/v/12306-cli.svg?style=flat)](https://npmjs.org/package/12306-cli)\n\n看到网上有个小伙伴用 python 实现了一款火车票查询工具，因此萌生了用 JavaScript 实现的冲动。此工具在 osx 下开发，windows 尚未测试。\n\n![](http://ww1.sinaimg.cn/large/8df27f17gw1f7dfzklo8pj21kw0s2drz.jpg)\n\n## 用到的工具\n\n* chalk - 命令行字体加色\n* request - http client\n* commander - 命令行程序框架\n* columnify - 命令行表格格式化工具\n\n## 安装\n\n```bash\n\u003e npm i -g 12306-cli\n```\n\n## 使用说明\n\n### 帮助\n\n```bash\n\u003e 12306 query -h\n```\n\n### 查询车票\n\n```bash\n\u003e 12306 query hangzhou xuzhou 2016-09-20\n\n\u003e 12306 query 杭州 徐州 2016-09-20\n```\n\n只看高铁\n\n```bash\n\u003e 12306 query hangzhou xuzhou 2016-09-20 --gaotie\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpgray%2F12306-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flpgray%2F12306-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpgray%2F12306-cli/lists"}