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

ks-server

v1.2.4

Published

用于平时自己开发项目的一个纯静态服务。

Readme

静态服务

用于平时自己开发项目的一个纯静态服务。

主要功能

  • 断点续传(206)
  • 缓存(304)
  • 压缩(gzip、deflate)

参数

-p, --port <n>	# 配置端口
-d, --dir <n>	# 配置所起服务的根路径
-o, --host <n>	# 配置主机名 
-e, --env <n>   # DEBUG 环境(eg: dev)

使用

npm i -g ks-server

ks-server -p 10086 -d /User/mobro/ks-server -o localhost

须知

默认端口:10086
默认目录:当前目录
默认主机: 本机 打印日志的话,需要运行

export DEBUG=dev (os 环境)
set DEBUG=dev (windows 环境)

写给自己

package.json 无法添加注释,而开发时又不想每改动代码就重新打包。故而暂时在 package.jsonbin 字段中添加如下代码,测试时直接使用 ks-server:dev 代替 ks-server
PS: 上传代码时,记得删除该行代码哦~~~ 捂脸

"ks-server:dev": "./src/bin/www.js"

环境

nodejs >= 11.3.0 (开发)
nodejs >= 6.4.0 (使用)