1.0.4 • Published 9 months ago

@jswork/wechat-signature v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

wechat-signature

Make it easier to get wechat access_token, jsapi_ticket and sign url.

version license size download

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.

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago