damai-cdn
v1.0.1
Published
一键更新CDN缓存,目前仅支持阿里云
Downloads
6
Readme
大麦CDN管理工具
一键更新CDN缓存,目前仅支持阿里云
安装
npm install --save-dev damai-cdn
使用
在项目中引入 damai-cdn 模块,并配置账号及密码
- 设置 username 及 password
app.js let cdn = require('damai-cdn') cdn.aliyun.update('http://dui.m.damai.cn/damai-h5-simple/', { username: '账号', password: '密码' }, function (res, msg) { console.log('succ') }, function (err, msg) { console.log('fail') })