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

fxjsbridge

v1.6.32

Published

提供一些常用的JS调用iOS/Android原生接口的能力

Downloads

10

Readme

FxJSBridge

  • 提供一些常用的js调用iOS/Android原生接口的能力
  • 需要配合iOS/Android专用APP客户端使用

使用方法

  1. 引入开发包
  // 方式1: 适用于所有项目
  <script src="https://unpkg.com/fxjsbridge@latest/src/index.min.js"></script>
  // 方式2: 在main.ts文件中引入,用于 vue,react等项目
  require('fxjsbridge')
  1. 使用 JSBridge.xxxfx.xxx即可使用相关api
  2. typescript支持
  • 在项目的tsconfig.json配置文件的compilerOptions.types处添加fxjsbridge

提供的接口

接口具体的使用方式参考index.d.ts文件

  1. openURL
  2. replace
  3. closeWindow
  4. setLocalStorage
  5. getLocalStorage
  6. removeLocalStorage
  7. setSessionStorage
  8. getSessionStorage
  9. removeSessionStorage
  10. showLoading
  11. showToast
  12. showSuccess
  13. showError
  14. showHUD
  15. hideHUD
  16. showModal
  17. setNavigationBarStyle
  18. showActionSheet
  19. previewImage
  20. chooseImage
  21. chooseMedia
  22. chooseFile
  23. saveImageToPhoto
  24. scanQRCode
  25. getLocation
  26. getUUID
  27. setClipboardData
  28. getClipboardData
  29. getNetworkType
  30. request
  31. uploadFile
  32. disableStickyViewForSpecificWhenKeyboardIsUp
  33. enableStickyViewForSpecificWhenKeyboardIsUp
  34. startFacialRecognitionVerify
  35. prepareRealPersonVerification
  36. startRealPersonVerification
  37. checkIsBiometricEnrolledInDevice
  38. startBiometricAuthentication
  39. getSystemInfo
  40. callPhone
  41. sendSMS
  42. sendMail ...

Fline 内部源