Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

maximousblk/serve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[DEPRECATED] use std/http > file_server instead.

serve

A neat interface for directory listing and fileserving over http

nest badge


preview

Usage

NOTE: You'll need at least Deno 1.2.0

The quickest way to get started is to just run the following command in your project's directory.

deno run --allow-read --allow-net https://x.nest.land/serve@1.0.3/mod.ts

If you prefer, you can also install serve globally using deno install:

deno install --allow-read --allow-net -n serve https://x.nest.land/serve@1.0.3/mod.ts

Once that's done, you can run this command inside your project's directory...

serve

...or specify which folder you want to serve:

serve folder_name

Finally, run this command to see a list of all available options:

serve --help

🎉 Now you understand how serve works!

Credits

This project is inspire by vercel/serve and Deno's file_server demo

License

serve is distributed under The MIT License.