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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@byhealth/native-app-jssdk

v2.7.0

Published

By-Health Native App Jssdk.

Downloads

38

Readme

By-Health Native App Jssdk

汤臣倍健营养家 App

安装

  • Yarn: yarn add @byhealth/native-app-jssdk
  • NPM: npm install @byhealth/native-app-jssdk --save

使用

import { scanQrCode, closeWindow } from '@byhealth/native-app-jssdk';

scanQrCode().then((result) => {
  // result 是识别后的结果
  console.log(result);
});

closeWindow();

更新

  • 生成 TypeScript 类型定义,使用 VSCode 可获得更佳体验;
  • 无回调或返回的接口,不再返回 Promise 对象;
  • 重写 iOS 端调用方法,支持连续调用接口(1.x 不支持);

API 文档

文档地址

FAQ

  • Android 的 scanQrCode 方法会去掉防伪码前面的 url,而 iOS 不会;
  • Android 和 iOS 不允许重复调用 playMusic 播放音乐;

Changelog

2.7.0

  • 【新增】getUserPermission 获取用户权限信息
  • 【新增】gotoHomePageTabIndex 跳到首页某个 tab

2.6.0

  • 【新增】 getDeviceInfo 获取设备信息接口
  • 【修改】 createCallback 添加超时参数

2.5.3

  • 【修改】 更新 scanQrCodescanBarCode 调用新接口

2.5.0

  • 【新增】 openMiniProgram 打开微信小程序 JSSDK

2.4.1

  • 【新增】 minVersion 判断当前版本是否符合条件
  • 【修改】 openNativeView 新增第三个参数,允许传递对象给窗口

2.3.0

  • 【新增】 saveWebImage 保存远程文件到相册

2.0.1

  • 修复 NodeJs 服务端找不到 window 的问题;

2.0.0

  • 使用 TypeScript 重写 SDK;
  • 支持 ES6 语法导出模块;
  • 支持多个接口连续调用;