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

sy-statistics

v1.2.3

Published

新氧统计公共产品

Downloads

5

Readme

sy-statistics

新氧的公共统计产品库

引用方式

本项目引用两个需要使用两个文件 dist/statistics_common.js src/statistics_private.js

其中

statistics_common.js 是公共的类库,请不要自行修改。

请使用dist/statistics_common.js 不要使用 src/statistics_common.js.js。

statistics_private.js 是私有的类库,大家可以根据自己平台和项目的情况重写里面的方法,返回规定格式的数据。

请将statistics_private.js 复制到其他地方再进行修改,不要直接修改src中的文件,避免npm更新的时候错误地覆盖文件。

example文件夹中有使用的示例

使用的过程中如果有问题请联系崔炳楠,彭胜锴,冯钰杰

必须注意的问题

statistics_private.js 文件中标记的必须重写和todo的地方必须根据项目的实际情况重写,不能用默认。

1.0.0

创建了适用的dom选择器、ajax封装、on/off 元素绑定、 forEach 、map 、checkType、getType、 extend 等等方法,用于适用统计的公共产品使用,去除jquery使得可在各个平台都能使用

1.0.3

更新了utils , 在fe-m 的项目中,引入使用。 测试之后改掉ajax 的data数据获取bug, select 的 未找到选择器之后的bug等等。

1.0.5

增加了webpack babel 解析、打包、压缩。

1.0.7

修改了打包规则, 以及utils中的bug

1.1.0

增加了market_activity_id, 测试环境使用测试域名

1.1.1

修复 build 问题

1.2.0

整理了文件结构和文件名,增加了一些反作弊策略

1.2.1

增加了示例和说明

1.2.2

修复了bug

1.2.3

浏览器类型增加微信小程序 (browser_type=4)