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

file-handle

v0.0.7

Published

A simple local web file server with a user-friendly interface, allowing easy file upload, download, preview, and management through a browser. 一个简易的文件服务器,方便通过浏览器来浏览、上传或管理目录和文件.

Readme

File-Handle

image

一个功能简单的本地Web文件服务器,友好的界面,方便通过浏览器来对文件进行上传、下载、预览和管理。

已经开发完成的特性

  • √ 快速启动本地文件服务器
  • √ 直观的Web界面,支持拖拽上传
  • √ 支持文件和目录的上传、下载
  • √ 文件预览功能(图片、视频、音频、Markdown等)
  • X 文件搜索和过滤
  • √ 目录压缩下载
  • √ 响应式设计,支持移动端访问
  • X 可选的文件删除和编辑功能
  • X 安全的文件操作和访问控制

使用方法

快捷使用

> npx file-handle

安装使用

> npm i -g file-handle

在希望共享的目录下运行以下命令,以启动文件服务器:

> fh

或者

> file-handle

这将在默认端口(6688)启动服务器,并使用当前工作目录作为根目录。

命令行选项

> file-handle 
  -d <目录路径> 
  -p <端口号> 
  -i <IP地址, ...>
  -w
  --tls <证书路径> <密钥路径> 
  --del 
  --password <密码> 
  --edit 
  --limit <文件大小限制>
  --log

参数说明

  • -d:指定服务器的根目录,默认为当前工作目录
  • -p:指定服务器监听的端口号,默认为6688
  • -i:指定服务器允许访问的IP地址,多个IP地址用逗号分隔,默认为空(即允许所有IP访问)
  • -w:允许公网访问(默认关闭)
  • --tls:启用HTTPS安全传输,需提供证书和密钥文件路径
  • --del:启用文件删除功能(默认关闭)
  • --password:设置Web服务器的访问密码,默认为空
  • --edit:启用文件编辑修改功能(默认关闭)
  • --limit:设置文件上传大小限制,如:300MB(支持PB、TB、GB、MB、KB单位,默认3GB)
  • --log:生成日志文件(默认关闭)

访问地址

  • 主界面:http://localhost:6688
  • 文件访问:/fh/[filepath]
  • API接口:/api/*

许可证

Copyright [gaoyuan]

Link: www.npmjs.com/package/file-handle

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.