@jswork/wechat-signature
v1.0.4
Published
Make it easier to get wechat access_token, jsapi_ticket and sign url.
Downloads
5
Readme
wechat-signature
Make it easier to get wechat access_token, jsapi_ticket and sign url.
installation
npm install @jswork/wechat-signature
usage
import WechatSignature from '@jswork/wechat-signature';
const wechatSignature = new WechatSignature({
appId: 'wx1231312314',
appSecret: 'eWsJGHef00IzNpDkenFEUOLAvAgYHe9F'
});
const sign = await wechatSignature.get('https://www.baidu.com');
/*
{
"appId": "wx1231312314",
"timestamp": 1691760434,
"nonceStr": "ibt50tqybof",
"signature": "0eeaf6427085c1ba8d22240a94818167293783df",
"url": "https://www.baidu.com"
}
*/
license
Code released under the MIT license.