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

jenson-tool

v0.1.3

Published

安装依赖 ```shell npm install jenson-tool ```

Downloads

4

Readme

Jenson自用工具包

使用

安装依赖

npm install jenson-tool

使用工具

import {track} from "jenson-tool"

track.init()

工具介绍

track 埋点

埋点相关(后台为独立开发,所以与其他埋点平台并不通用) 使用:

import {track} from "jenson-tool"

// 初始化设置部分数据
track.init({
    baseUrl: "http://server.miaojingu.com:3258/api/track/gif", // 埋点接口地址
    deviceId: "deviceId", // 当前设备唯一id
    appId: "1", // 项目id,需要后台存在该项目
    appVersion: "1.0", // 当前项目版本
}) 

// 可随时修改当前appid和appVersion
track.setApp({
    appId: 1,
    appVersion:"2.0",
}) 

// 设置当前用户(没有系统的userId则为null,这里的系统指的是jenson-server后台)
track.setUser('userId',{
    username:"用户名"
})

// 发送埋点信息
track.send(
    TrackEvent.USER_LOGIN,// 事件id,可自定义,系统有多个内置事件ID在枚举TrackEvent中
    {
        describe: "用户登录", // 描述,自定义类型必传
        data: { // "自定义任何数据"
            referrer: '', // 来源页面 TrackEvent.PAGE_IN 类型必传
            pageStayTime: '', // 页面停留时间 TrackEvent.PAGE_OUT 类型必传
        }
    }
)

project 项目

项目相关工具

autoUpdate

自动监测更新

import {project} from "jenson-tool"
project.autoUpdate({
    duartion: 2000, // 监测时间,默认2000 2秒
    // 回调函数(自定义更新,默认弹窗提示更新)不调用next() 则不会继续监测
    callback: (needUpdate,next)=>{
        if(needUpdate){
            // 需要更新
            return
        }
        next()
    }
})