wechat-tools
Advanced tools
Comparing version 0.0.0 to 0.0.1
{ | ||
"name": "wechat-tools", | ||
"version": "0.0.0", | ||
"description": "this is a plug for wechat", | ||
"version": "0.0.1", | ||
"description": "wechat 回复小工具 ,包括天气预报、历史今天等实用功能", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [ | ||
"wechat" | ||
"wechat", | ||
"weixin" | ||
], | ||
"author": "netpi", | ||
"license": "ISC" | ||
"dependencies": { | ||
"urllib": "^1.5.2" | ||
} | ||
} |
@@ -1,1 +0,35 @@ | ||
## This is plug for wechat | ||
## wechat-tools 是微信公众平台开发者的实用小工具 | ||
## 安装 | ||
``` | ||
npm install wechat-tools -save; | ||
``` | ||
## 使用 | ||
### 1 回复天气预报 | ||
此为共享 ak = uD67wmZzhi3RFcmTkGoks2Dr,实际应用时建议去[百度开发者](developer.baidu.com/map/index.php)自行申请ak | ||
``` | ||
var wt = request('wechat-tools'); | ||
var ak = 'uD67wmZzhi3RFcmTkGoks2Dr';// | ||
var city = '北京'; | ||
wt.weather(ak,city,function(err , data){ | ||
if(err){ | ||
throw err; | ||
}else{ | ||
console.log(data); | ||
} | ||
}); | ||
``` | ||
#### console.log(data); 结果如下图 | ||
![参考图片](http://netpi.github.io/resource/images/weather01.png) | ||
### 2 回复历史上的今天 | ||
``` | ||
wt.history(function (err,data) { | ||
if(err){ | ||
throw err; | ||
}else{ | ||
console.log(data); | ||
} | ||
}) | ||
``` | ||
#### console.log(data); 结果如下图 | ||
![参考图片](http://netpi.github.io/resource/images/history01.png) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
3992
7
85
2
35
0
1
1
+ Addedurllib@^1.5.2
+ Addedaddress@2.0.3(transitive)
+ Addeddebug@1.0.5(transitive)
+ Addeddefault-user-agent@0.0.1(transitive)
+ Addeddigest-header@0.0.1(transitive)
+ Addedms@2.0.0(transitive)
+ Addednative-or-bluebird@1.0.0(transitive)
+ Addedurllib@1.5.2(transitive)
+ Addedutility@0.1.11(transitive)