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

record-sdk

v1.0.11

Published

> record-sdk 是车车在车险产品上的录屏 sdk。数据将保存在车车的录屏管理平台。

Readme

车车录屏

record-sdk 是车车在车险产品上的录屏 sdk。数据将保存在车车的录屏管理平台。

开始使用

安装

npm install record-sdk --save

初始化

import record from 'record-sdk'; record.init({ baseUrl: xxxxx }); // xxxx 是服务器地址

录屏

record.startRecord({ channelId: 'chebaoyi', orderId: xxxx, pageCode: xxxx});

record.stopRecord({ channelId: 'chebaoyi', orderId: xxxx, pageCode: xxxx,saveKey?:xxxx},options?:{onBefore:(params)=>{},onFinish:(result=>{})});

入参说明:

  • channelId 渠道编码(必填)

  • orderId 订单 ID(关于这个录屏的单的唯一标识)(必填)

  • pageCode 录屏当前页面的推一标识(例如页面链接)(必填)

  • saveKey?: string // 如果 orderId 不确定,用了其他唯一标识,有了确定的 orderId 后,再提交

  • onBefore stopRecord 方法回调函数,上传前调用

  • onFinish stopRecord 方法回调函数,上传完后调用,返回{code:200,msg:'',data:[${记录 id}]}表示上传成功

startRecord 与 stopRecord 应配对使用。 进入待录屏页面时,必须先 startRecrod 启动录屏, 退出当前页面时,必须调用 stopRecord,才能启动新页面的录制(startRecrod)。 调用 stopRecord 时,接口会自动上传当前录制的记录。