[DEPRECATED] use
std/http > file_serverinstead.
A neat interface for directory listing and fileserving over http
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/[email protected]/mod.tsIf you prefer, you can also install serve globally using deno install:
deno install --allow-read --allow-net -n serve https://x.nest.land/[email protected]/mod.tsOnce that's done, you can run this command inside your project's directory...
serve...or specify which folder you want to serve:
serve folder_nameFinally, run this command to see a list of all available options:
serve --help🎉 Now you understand how serve works!
This project is inspire by vercel/serve and Deno's file_server demo
serve is distributed under The MIT License.
