cntrain

Query things about Chinese railway via CLI.

Usage no npm install needed!

<script type="module">
  import cntrain from 'https://cdn.skypack.dev/cntrain';
</script>

README

node-train

NPM version David deps

NPM

Query things about Chinese railway via CLI.

Install

[sudo] npm install cntrain [-g]

Usage

  • Query train schedule
cntrain -n g1
  • Query left tickets
cntrain -f 南京南 -t 北京南 -d 2015-01-05
  • Look for help
cntrain -h
  • Get the vertion
cntrain -V

License

The MIT License