npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

watch12306

v0.0.8

Published

检测12306网站,并在有余票时候通知

Downloads

3

Readme

watch12306(有票通知你)

  1. 可同时监视多个目标,一个json文件对应一个目标
  2. 配置文件为中文,简单易懂
  3. 配置文件被更改的时候自动刷新
  4. 仅仅是 监视 + 通知 的功能,不能订票
  5. 自动监视12306,当有的时候在桌面进行通知

使用

0. 下载

$ git clone [email protected]:Froguard/wt.git

1. 安装

$ npm install
$ npm link

2. 创建配置文件

./targets/target1.json (可以创建多个*.json文件,名字随意,字段固定如下)

{
  "出发时间": "2016-12-19",
  "出发站": "大连",
  "到达站": "本溪",
  "成人票": true,
  "显示票价": true,
  "仅显示高铁": false,
  "监控频率(分钟)": 1,
  "包含票种": [
    "//商务座",
    "//特等座",
    "一等座",
    "//二等座",
    "//高铁软卧",
    "//软卧",
    "//硬卧",
    "//软座",
    "//硬座",
    "//无座",
    "//其他"
  ]
}

不需要的票种,请删掉,或者注释掉即可,比如上例中,只会在 一等座 有票的时候进行通知

3. 开启

$ watch12306

or

$ watch12306 %another_directory_path_u_ve_created%
  • 开启后放一边即可,当有票的时候,可以在桌面上通知
  • 当json文件被修改的时候,watcher会自动刷新,并立即执行一次查询,不用重启本程序

4. 效果

控制台

cmd

桌面

cmd

注意事项

  • node版本>4.0.0
  • 气泡弹窗,如果想要好看一点,建议windows用户请安装Growl程序,当然,不安装也是可以的