Skip to content
/ fastic Public
forked from xxczaki/fastic

๐Ÿš€ Fast & Lightweight CLI HTTP server

License

Notifications You must be signed in to change notification settings

ymbrite/fastic

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

67 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Fastic ๐Ÿš€

Fast & Lightweight HTTP server, that just works. Accessible through CLI.

Build Status XO code style

SVG

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 ~200 lines of code)

Install

npm install --global fastic

You can also use npx:

npx fastic

Usage

	Usage
	 	$ fastic <options>
	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

About

๐Ÿš€ Fast & Lightweight CLI HTTP server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%