griffinwebserver

1.0.0 • Public • Published

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});

Readme

Keywords

none

Package Sidebar

Install

npm i griffinwebserver

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

4.88 kB

Total Files

6

Last publish

Collaborators

  • andreasgrip