ncu-electric

1.2.0 • Public • Published

介绍

用于查询电费信息。昌大助手的组件。

运行方式

npm install ncu-electric --save
var 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

### 测试
全局安装mocha

npm i mocha -g

然后:

npm test

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    2
  • 1.1.0
    0

Package Sidebar

Install

npm i ncu-electric

Weekly Downloads

2

Version

1.2.0

License

MIT

Last publish

Collaborators

  • lxxyx