🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@hashencode/wechat-js-sdk

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hashencode/wechat-js-sdk

微信官方 js-sdk npm 安装版,支持 typescript

latest
Source
npmnpm
Version
1.6.6
Version published
Maintainers
1
Created
Source

微信官方 js-sdk

说明:

原项目(https://github.com/yanxi123-com/weixin-js-sdk)没有继续更新,故单开一个新的自用仓库。

仅将官方 js-sdk 发布到 npm,支持 CommonJS,便于 browserify, webpack 等直接使用,支持 TypeScript。

官方 JS 源码: https://res.wx.qq.com/open/js/jweixin-1.6.0.js

官方使用说明: https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html

安装:

npm install wechat-js-sdk

使用:

// commonjs
var wx = require('wechat-js-sdk');

// es module
import wx from 'wechat-js-sdk'

感谢

TypeScript 定义文件来自 wx-jssdk-ts

FAQs

Package last updated on 11 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts