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 🙏

© 2025 – Pkg Stats / Ryan Hefner

notify-brower

v1.0.0

Published

push info to browser

Readme

notifyInfoBrower(time, title, option) time = 3000, // 显示间隔默认3s title = "收到消息", // 默认消息title option = { dir: "auto", // 主体内容的水平书写顺序 lang: "utf-8", // 提示的语言 body: "", // 提示的主题内容 tag: "", // 字符串。标记当前通知的标签。 icon: "", // 字符串。通知面板左侧那个图标地址。 image: "", data: {}, // 任意类型和通知相关联的数据。 vibrate: [], // 通知显示时候,设备震动硬件需要的振动模式。所谓振动模式,指的是一个描述交替时间的数组,分别表示振动和不振动的毫秒数,一直交替下去。 // 例如[200, 100, 200]表示设备振动200毫秒,然后停止100毫秒,再振动200毫秒。 renotify: false, // 是否替换之前的通知,为true时,必须设置tag的参数 silent: false, // 通知出现的时候,是否要有声音 sound: "", // 音频地址。表示通知出现要播放的声音资源 noscreen: false, // 是否不再屏幕上显示通知信 sticky: false, // 是否通知具有粘性 }

notifyInfoBrower.then(notify => { // 里面写回调,notify的事件 notify.onshow = () => {} notify.onclose = () => {} notify.onclick = () => {} notify.onerror = () => {} })