1.2.0 • Published 10 years ago
ncu-electric v1.2.0
介绍
用于查询电费信息。昌大助手的组件。
运行方式
npm install ncu-electric --savevar ele = require('ncu-electric')
// 填写寝室号
ele.getInfo(dormitory)
  .then(data => {
    // 对获取到的电费数据进行操作
  })
  .catch(err => {
    // 错误处理
  })
将要查找的图书地址,放入一个json文件中即可。
## 开发git clone https://github.com/Lxxyx/ncu-electric cd ncu-electric npm install gulp
### 测试
全局安装mochanpm i mocha -g
然后:npm test