DEV Community

Cover image for Write a file server with only ONE line of code
Fiona
Fiona

Posted on

Write a file server with only ONE line of code

And let’s get straight to the code:

require("http").createServer(require("express").serveStatic("shareFolder")).listen(80)
Enter fullscreen mode Exit fullscreen mode

Top comments (0)