macOS
brew install http-serverlocal Homebrew formula metadata
安装
brew install http-serverlocal Homebrew formula metadata
nix profile install nixpkgs#http-servernixpkgs package indexes · pkgs/by-name/ht/http-server/package.nix · 来源: api.github.com
概览
Simple zero-configuration command-line HTTP server
历史
http-server is a Node.js command-line static HTTP server. Its README describes a zero-configuration server that is simple enough for testing, local development, and learning, but also includes practical options for caching, directory listings, proxying, TLS, headers, and authentication.
The GitHub repository was created in June 2011, and npm registry metadata records the package beginning the same day with version 0.1.0. The project became one of the standard Node-era answers to 'serve this folder over localhost' before npx made one-off CLI execution common.
The package evolved from a tiny static-file helper into a more featureful local server. The README documents installation through npx, global npm, Homebrew, dependency installation, and Docker builds, while release metadata shows the project reaching the 14.x line in 2021 and 2022.
http-server's adoption is visible across npm, GitHub, and Homebrew: the official README includes npm and Homebrew badges, GitHub displays a large star/fork footprint and many dependents, and the input metadata records Homebrew and Nix packaging. Its popularity comes from needing no application framework when all a developer wants is static files over HTTP.
Common use is `npx http-server` or a global `http-server` command pointed at a directory. Options cover port and address selection, cache control, gzip and Brotli serving, CORS headers, custom headers, SPA-style proxy fallback, TLS certificates, basic authentication, robots.txt generation, and MIME overrides.
For package nerds, http-server is a classic small CLI that became infrastructure glue. It sits at the intersection of npm's executable-bin model, frontend local development, static-site demos, and Homebrew packaging for JavaScript tools that people want outside a single Node project.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
http-server | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/http-party/http-server
安装元数据
| 软件包键 | brew:http-server |
|---|---|
| 版本 | 14.1.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/http-server |
| 主页 | https://github.com/http-party/http-server |
| 仓库 | https://github.com/http-party/http-server |
| 上游文档 | https://github.com/http-party/http-server#readme |
| 许可证 | MIT |
| 源码归档 | https://registry.npmjs.org/http-server/-/http-server-14.1.1.tgz |
| 依赖 | node |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | http-server |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Conflicts With |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
http-server
nix profile install nixpkgs#http-server来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.