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

@scgczm/bridge

v1.1.4

Published

scgczm app jsbridge

Downloads

45

Readme

app jsbridge

支持 cjs、esm、umd 引入

esm 用法(cjs 同理)

1、安装

npm i @scgczm/bridge

2、使用

import { scgcLogin } from "@scgczm/bridge";
scgcLogin();

umd 用法

1、引入

<script src="https://kscgc.sctv.com/sctv/dependencies/bridge/scgc_bridge.min.js"></script>

2、使用

window.scgcBridge.scgcLogin();

bridge 方法列表

1、同步方法

  • scgcChangeStateBarColor - 设置app顶部时间栏颜色
  • scgcClose - 关闭当前webview
  • scgcCopyText - 复制文本到剪贴板
  • scgcFocusWeb - 是否禁用app左右滑动(主要用户嵌入在app首页的swiper,避免滑动swiper的情况下,会滑动app首页的tab页)
  • scgcGetCaptchaVerifyParam - 传递验证码参数到app(阿里验证码2.0使用)
  • scgcGetSlideData - 阿里滑动验证(使用的旧版api,目前官方文档已散佚,可参考其他项目)
  • scgcLogin - 调用app登录
  • scgcOpenexplorer - 使用系统浏览器打开指定的url
  • scgcOpenwechat - 打开微信小程序
  • scgcSaveimage - 保存图片
  • scgcScan - 调用app扫码
  • scgcSetVolume - 设置app音量
  • scgcShare - 配置app分享
  • scgcToAppHome - 跳转至app首页
  • scgcToDetail - 打开app原生新闻页
  • scgctoDocumentshow - 打开原生纪录片页面
  • scgcToH5 - 打开一个webview
  • scgcToKuaipai - 跳转至快拍
  • scgcToLive - 打开app原生直播页
  • scgcToMall - 跳转至积分商城
  • scgcToMallDetail - 打开积分商城商品详情
  • scgcToSpecial - 打开app原生专题详情页
  • scgcToSubSpecial - 打开app原生专题新闻列表页
  • scgcToTopic - 打开app话题页
  • scgcToTopicCollection - 打开话题合集页
  • scgcToTopicPublish - 打开话题发布页
  • scgctoVarietyshow - 打开原生综艺页面

2、异步方法

  • scgcGetAvatar - 获取app 用户头像
  • scgcGetNickName - 获取app 用户昵称
  • scgcGetPhoneNumber - No description
  • scgcGetUserId - 获取app 用户id

工具方法

  • isScgcApp

开发模式

eg.

import { setDevMode } from "@scgczm/bridge";
setDevMode();
控制台会打印调用的参数等数据(建议使用 vconsole 查看)