Fastic 🚀通过CLI访问的快速轻量级HTTP服务器
Fastic 🚀通过CLI访问的快速轻量级HTTP服务器
Node.js 命令行实用程序
共40Star
详细介绍
🚀
Fastic
Fast & Lightweight HTTP server, that just works. Accessible through CLI.
Highlights
- Beautiful output
- Zero-config (unless you want to specify a custom port or directory).
- Uses async/await
- Easy access through CLI.
- Automatically detects the content type, using file extension.
- Uses blazing fast turbo-http library.
- Logs HTTP requests & response status codes.
- Single source file (containing ~160 lines of code)
- 3 dependencies
- Lightweight (only ~1.6 MB).
Install
npm install --global fastic
You can also use npx
:
npx fastic
Usage
Usage
$ fastic [port] [directory]
Examples
$ fastic
$ fastic 8250 ~/DEV/website
port
Custom port of choice, defaults to 5050
.
directory
Directory, from which the server is going to start, default is current path.
License
MIT
-
2415 Star
-
0 Star
-
0 Star
-
622 Star
-
523 Star
-
883 Star
-
0 Star
-
0 Star
-
0 Star