Socket
Socket
Sign inDemoInstall

12306-cli

Package Overview
Dependencies
59
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    12306-cli

command line tools for 12306.cn


Version published
Weekly downloads
41
increased by36.67%
Maintainers
1
Install size
4.10 MB
Created
Weekly downloads
 

Readme

Source

12306-cli

NPM Version

看到网上有个小伙伴用 python 实现了一款火车票查询工具,因此萌生了用 JavaScript 实现的冲动。此工具在 osx 下开发,windows 尚未测试。

用到的工具

  • chalk - 命令行字体加色
  • request - http client
  • commander - 命令行程序框架
  • columnify - 命令行表格格式化工具

安装

> npm i -g 12306-cli

使用说明

帮助

> 12306 query -h

查询车票

> 12306 query hangzhou xuzhou 2016-09-20

> 12306 query 杭州 徐州 2016-09-20

只看高铁

> 12306 query hangzhou xuzhou 2016-09-20 --gaotie

Keywords

FAQs

Last updated on 02 May 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc