Catalog npm
Back to packageRELEASE DETAILS

0.3.1

npm

12306-cli

command line tools for 12306.cn

12306
Published1 Sept 2016
Direct dependencies5
Transitive dependenciesNot calculated

README

Current package documentation

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 5

Native requirements
5 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
chalk
Environment
{
  "local_name": "chalk",
  "alias": false,
  "peer_metadata": null
}
^1.1.3runtime
columnify
Environment
{
  "local_name": "columnify",
  "alias": false,
  "peer_metadata": null
}
^1.5.4runtime
commander
Environment
{
  "local_name": "commander",
  "alias": false,
  "peer_metadata": null
}
^2.9.0runtime
request
Environment
{
  "local_name": "request",
  "alias": false,
  "peer_metadata": null
}
^2.74.0runtime
babel-eslint
Environment
{
  "local_name": "babel-eslint",
  "alias": false,
  "peer_metadata": null
}
^6.1.2development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "3082bea69310de767c14eb4a696c9fa8d36c0607",
  "tarball": "https://registry.npmjs.org/12306-cli/-/12306-cli-0.3.1.tgz",
  "integrity": "sha512-7spMcATDRwfrL4V8rX2m64r73AKF6s/bUKXvbIw/j5ZkzIrSdVfEz1xUeSn787K2ZkVvwbIJyBirknCtu9wkqg==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQCb/N/amf22ve3Ew26iOR9kp74Kt2AaAL6PAZU7exaDyAIhAI8pgqiYshgSNVI0G26oRAMtuiNKjbA/RuMzZOgP2LhA"
    }
  ]
}

Repository

PENDING
lpgray/12306-cli

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:08 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:63202ee0b6391f8da380fb2a2ef23297a8d3bf4ae69ee3f8609095f419d96e6b

Other collected versions

0.4.12 May0.4.01 Sept0.3.01 Sept0.2.31 Sept0.2.231 Aug0.2.131 AugView all collected versions →