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

hot-refresh

v2.2.3

Published

> Static server && Hot update from time to time

Downloads

3

Readme

hot-refresh Weekly downloads Yearly downloads

Static server && Hot update from time to time

It is not allowed to open two services in one directory, because this may involve websocket communication

If the page does not refresh from time to time, press the center key on the terminal

What plugin is this?

English

  1. Support powerful front-end static services 
  2. The powerful log system can be freely controlled by parameters 
  3. Support static service cache (mandatory cache and negotiation cache)
  4. It can monitor all file changes introduced into HTML and notify the browser of updates
  5. When introducing or deleting external links, it can make differential comparison to reduce the performance consumption of listening files
  6. It can save and refresh the browser from time to time, ending the era of manually refreshing the browser

中文

  1. 支持强大静态服务
  2. 强大的log体系,可以通过参数自由控制打印
  3. 支持静态服务缓存(强制缓存,以及协商缓存)
  4. 能够监听html中引入所有的文件变化,而从通知浏览器更新
  5. 引入或是删除外部链接时,能够做颗粒程度的差异化比较,减少监听文件对性能消耗
  6. 能够做到时时保存,时时刷新浏览器,结束了手动刷新浏览器的时代

Support scope?

English

  1. Front and rear end separation items 
  2. Simple H5 web pages 

中文

  1. 前端后分离项目
  2. 单纯的h5 web项目

Parameter system ?

1. [-V] output the version
 $ hot-refresh -V
 $ 1.0.1
2. [-p] Port number to start the service
  $ hot-refresh -p 9000
  $ http://localhost:9000
3. [-l] print error log
  $ hot-refresh -l
4. [-lw] log write file
  $ hot-refresh -lw
  // The monitored log will be printed to the root directory of the service 
  // 监听的log会打印到服务的根目录下
5. [-s] start only static services
  $ hot-refresh -s
  // 是否只需要静态服务
6. [-c] start static file caching
  $ hot-refresh -c
  // 是否开启静态缓存模式

install

  npm install hot-refresh -g
  yarn add hot-refresh -g

use -- 推荐使用

  npx hot-refresh -p 8080

for example

$ hot-refresh -p 9000
Service started successfully, the address is: F:\other-project\test
http://192.168.31.121:9000
http://127.0.0.1:9000
http://localhost:9000
File change watch ...
Hit CTRL-C to stop the server