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

ydl_bridge

v1.1.5

Published

ydl js bridge

Downloads

4

Readme

jsBridge

YDLBridge 是一个壹点灵WEB和Native(IOS和安卓)进行交互的统一封装。

Installation&&Use

In a browser

<script src="https://pic.ydlcdn.com/track/index1.0.0.js"></script>
//一般js交互方法
YDLBridge.bridge({
  action:'', //IOS定义的关键字
  params:{}, //对象参数 {key:value}
  scheme:'' //[http|ydl_app],app识别的协议(默认为ydl_app)
});

//新webview打开h5页面
YDLBridge.openH5(url)

Using npm:

cnpm i ydl_bridge --save 
import YDLBridge from 'ydl_bridge';
YDLBridge.bridge({
  action:'down_refresh',
  params: { switch: false }
})

action参数说明

  • post_send:专家讨论区发帖
  • doctor_home:专家主页,带share
  • show_doc:搜索专家的列表
  • to_order_ct:免费体验下单页面
  • expert_product:专家商品详情
  • sendResult:发送测试结果给专家
  • active_send_share:分享测试题
  • order:订单预约页面
  • order_detail:我的订单详情
  • login:跳转登录
  • pay:跳转支付
  • eval:订单评价
  • view-eval:查看订单评价
  • modify-eval:修改订单评价
  • booking-order-detail:预约订单详情
  • user_home:用户主页
  • copywechat:复制到微信
  • gowechat:打开微信
  • active_send:动态发布
  • topic_detail:话题详情
  • listen-order-detail:倾诉订单详情
  • tel:打电话
  • agreement:用户协议
  • detail-sub:预约订单子订单
  • fm:跳转心情fm,或者fm_detail
  • test:心理测试
  • article_list:心理杂志
  • course_detail:课程详情
  • course_category:课程分类
  • course_demo : 课程试听
  • course_media : 课程播放
  • course_comments:课程评论
  • chat_team : 进入群聊
  • chat : 联系小壹,uid = 14
  • commonweal_answer:公益解答
  • release_service:服务发布
  • release_article:发布文章
  • show_media: 原生浏览h5页面的附件(图片1、视频2和音频3)
  • course_list:课程列表
  • pay_course:课程支付
  • active_detail:动态详情
  • product_list:好柿服务列表
  • voice_broadcast 课程语音直播
  • order_set_time: 下单选择时间
  • onorder_by_app:原生进入下单页面
  • sq_post_list:专家讨论区列表
  • sq_post_detail 专家讨论区详情网页-h5
  • touch_event 安卓解决h5和原生控件事件冲突(触摸开始传{‘intercept’:true}由,触摸结束传{'intercept':false})
  • feedback:意见反馈
  • select_img:选择图片
  • down_refresh:下拉刷新 参数:switch:true|false
  • listen_list:倾述列表
  • back_refresh:后退并刷新
  • action_share:通用的分享
  • action_invite:分销邀请
  • action_fund:资金明细
  • refresh:刷新界面