npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

equity-jssdk

v0.0.4

Published

和多惠能力组件

Readme

equity-jssdk

equity-jssdk 封装了和多惠H5基础能力,具体包括:和客户端通信能力等功能。 注:当前js只能在和多惠客户端才会有效果

使用方式

1、引入库

npm install equity-jssdk --save 或者
yarn add equity-jssdk

能力介绍

代码示例:

HDH.login(); //调用客户端能力进行登录    

Props

| 属性名 | 说明 | 类型 | 默认值 | |-------|---------------|-----|-----| |isH5|是否使用浏览器浏览|Boolean|false| |isAPP|是否嵌套客户端|Boolean|false| |isAndroid|是否嵌套安卓客户端|Boolean|false| |isIOS|是否嵌套iOS客户端|Boolean|false|

Methods

| 方法名 | 说明 | 请求参数 | 返回值 | |-------|---------------|-----|-----| |getMobile|获取用户手机号码|-|Promise| |navigation|导航|name: 地方名称longitude: 纬度latitude: 手机号码|-| |login|登录|-|Promise| |getToken|获取大网令牌,用于第三方单点登录|-|Promise| |logout|登出|-|-| |getLocation|获取经纬度|-|Promise| |openMcsCloud|打开和彩云|-|Promise| |openMiguRead|打开咪咕阅读|-|Promise| |openMiguGame|打开咪咕快游|-|Promise| |openMiguMusic|打开咪咕彩铃|-|Promise| |openPage|打开页面|url: 链接地址title?:标题ssologin?:是否需要单点|-| |getDistance|获取当前位置与某经纬度的距离|location: 经纬度|Promise| |setItem|存储数据|key:数据keyvalue:数据值type:存储方式,包括local(使用localStorage存储)、native(使用客户端存储)|-| |getItem|获取已存储的数据|key:数据keytype:存储方式,包括local(使用localStorage存储)、native(使用客户端存储)|Promise| |removeItem|删除已存储的数据|key:数据keytype:存储方式,包括local(使用localStorage存储)、native(使用客户端存储)|-| |checkVersion|检查版本是否有更新|-|-| |getVersion|获取当前客户端版本号|-|Promise| |getCacheSize|获取客户端缓存大小|-|Promise| |clearCache|清除缓存|-|-| |startGameQos|游戏智能加速|-|Promise| |startLiveQos|直播智能加速|-|Promise| |startVipQos|上网智能加速|-|Promise|