1.0.0 • Published 2 years ago
griffinwebserver v1.0.0
This is just a basic webserver that will serve any fill inside your projects www folder. with no requirements at all = no node_modules folder.
Reason for creating this was that I ended up needing a server like this for most of my project and got tired of rewrite/copy it all the time.
Usage: Once you added the webserver.js to your project. Create a www folder and it's content will be served. If nothing in the folder it will try to serve index.html
node ./example.js Show how to do it. The file contains the following line.
const webserver = require('./webserver').create({port: 8080});
1.0.0
2 years ago