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

anydoor_test_lulin

v0.1.4

Published

读取项目目录

Downloads

28

Readme

anydoor

Tiny nodejs static web server

安装

npm i -g anydoor

使用方法

anydoor # 把当前文件夹作为静态资源服务器根目录

anydoor -p 8080 # 设置端口号为 8080

anydoor -h localhost # 设置host为localhost

anydoor -d /usr # 设置跟目录为/usr

配置bin目录

在package中配置bin参数并且在根目录下新建bin目录

  "bin": {
      "anydoor": "bin/anydoor"
  }
  //在anydoor文件中写入下面两句代码
  #!/usr/bin/env node
  require('../src/index')

版本号x.y.z

z表示修改bug后升级,y表示功能迭代,x表示版本彻底升级并且不兼容之前的版本

  • 1.2.*表示x和y位用固定的z位用最新的
  • ~1.2.0等同^2.0.0表示x位大版本固定,y和z位版本用最新的

发布npm包

npm login //登录npm,此时不应使用cnpm
npm publish //推送项目,每次推送都需要升级版本

安装npm包

npm install anydoor_test_lulin -g

需要注意,安装包时,npm只会自动安装package.json中dependencies里面的依赖项