Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xxczaki/fastic
🚀 Fast & Lightweight CLI HTTP server
https://github.com/xxczaki/fastic
cli fast fastic http lightweight nodejs server simple site static web website
Last synced: about 2 months ago
JSON representation
🚀 Fast & Lightweight CLI HTTP server
- Host: GitHub
- URL: https://github.com/xxczaki/fastic
- Owner: xxczaki
- License: mit
- Created: 2018-08-02T18:38:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-06-21T01:15:14.000Z (over 1 year ago)
- Last Synced: 2024-11-11T12:34:09.756Z (2 months ago)
- Topics: cli, fast, fastic, http, lightweight, nodejs, server, simple, site, static, web, website
- Language: JavaScript
- Size: 127 KB
- Stars: 42
- Watchers: 4
- Forks: 5
- Open Issues: 9
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
- License: license
Awesome Lists containing this project
README
# Fastic 🚀
> Fast & Lightweight HTTP server, that just works. Accessible through CLI.
[![Build Status](https://travis-ci.org/xxczaki/fastic.svg?branch=master)](https://travis-ci.org/xxczaki/fastic) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo)
# 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](https://github.com/mafintosh/turbo-http) library.
- Logs HTTP requests & response status codes.
- Single source file (containing ~200 lines of code)# Install
```bash
npm install --global fastic
```
You can also use `npx`:```bash
npx fastic
```# Usage
```bash
Usage
$ fastic
Options
--port, -p Port on which the server will be running (default: 5050)
--directory, -d Directory from which the server will be running (default: current path)
--open, -o Open server address in browser? (default: false)
--log, -l Log HTTP requests & response status codes (default: false)
Examples
$ fastic
$ fastic -p 8080 -d dist --open
$ fastic --port 3000 --log
```## License
MIT