finds.dev← search

// the find

sofish/wechat.js

★ 912 · JavaScript · NOASSERTION · updated Jan 2015

微信相关的 js 操作:分享、网络、菜单

A JavaScript wrapper for the old WeChat JS API (pre-JSSDK) that simplifies share actions, menu manipulation, and network detection inside the WeChat in-app browser. The README opens with a notice that WeChat's official JSSDK superseded it — in 2015. This is a historical artifact.

- Clean single-function API that unified several inconsistent WeChat hooks behind one consistent call signature

- Lazy evaluation of data properties via function support was a practical workaround for SPA timing issues

- Small and focused — no dependencies beyond what bower pulls in, easy to read in one sitting

- Abandoned in January 2015 and explicitly deprecated by its own README — the official WeChat JSSDK has been the standard for over a decade

- The WeChat APIs it wraps no longer exist in any modern WeChat version; adopting this will accomplish nothing

- No tests, no TypeScript types, built around bower which is itself dead

- 912 stars are entirely a snapshot of 2014 developer interest; the forks are almost certainly all dead too

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →