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

mutants-jsbridge

v2.0.58

Published

## 模块说明 Plugin是跨容器桥接库的核心基类,它统一了插件与容器通讯的方法,依赖env,创建不同的插件实例。 整个检测的过程是在适配层库中完成的,业务插件无需关心容器环境,调用统一的方法可以实现跨容器桥接的调用

Downloads

26

Readme

mutants-jsbridge

模块说明

Plugin是跨容器桥接库的核心基类,它统一了插件与容器通讯的方法,依赖env,创建不同的插件实例。 整个检测的过程是在适配层库中完成的,业务插件无需关心容器环境,调用统一的方法可以实现跨容器桥接的调用

能力说明

应用管理

  • appInit 获取应用初始化信息接口
  • destroyApp 关闭应用接口

认证

  • getAuthCode 获取一次性随机code 用于获取用户信息

定位

  • getLocationInfo 获取位置信息
  • displayNearby 获取附近的地址列表

蓝牙

  • getBlueToothState 获取蓝牙状态
  • blueToothScan 扫描蓝牙列表
  • blueToothConnect 蓝牙连接
  • blueToothDisConnect 蓝牙断开链接
  • getBlueToothConnectState 获取设备连接状态
  • blueToothStopScan 停止扫描
  • blueToothPrint 蓝牙打印

系统能力

  • phoneCall 打电话
  • getSystemInfo 获取系统信息
  • getNetType 获取网络信息
  • jumpSystemSettings 跳转到设置界面
  • getStorage 获取缓存信息
  • setStorage 设置缓存信息
  • removeStorage 清除缓存信息
  • registerBackEvent 注册android back事件

图片能力

  • previewPhoto 预览图片
  • takePhoto 拍照
  • selectImgs 选择本地相册

路由能力

  • openLightApp 打开应用
  • getSourceAppParam 获取来源参数

文档能力

  • docPreview 文档预览

分享能力

  • share 调用分享组件

扫描能力

  • qrCodeScan 二维码扫描

UI控件

  • dateTimePicker 日期选择器

统计相关

  • collectionData 埋点采集

使用说明

import {qrCodeScan} from 'mutants-jsbridge';
qrCodeScan.then(qrCode=>{
    console.log('扫描到的二维码==========',qrCode);
});