npm-free-server
v1.1.0
Published
A very tiny webserver that uses no other dependencies.
Downloads
15
Maintainers
Readme
NPM-Free-Server
This is a very tiny server. Without comments it's 50 lines of code and it's <1KB (minified).
You do not need to use npm install
to use this. You just need Node installed. Feel free to modify it for you project.
How to run the server:
- Install Node.JS
node server.js
If you're on Windows you can just double-click the server.bat
.
If you would like for the server to auto launch a browser at the correct localhost address, you use the node module open
, by either requiring it in, or simply copying it's JS file from it's repo into this JS file.
- https://www.npmjs.com/package/open