hostwithnode
v0.2.0
Published
A simple shell script for Node.js which sets up a streaming HTTP server for static files in the current working directory. Now with JSONP support!
Downloads
12
Readme
Project Description
hostwithnode leverages the mime NPM package and the Node.js javascript environment to set up a streaming server in the local directory.
The file ./bin/host
works as a binary in shell enrivonments making use of the
node.js shebang. It takes on argument a port number, which is the port the
HTTP server will run on. If no argument is present the server runs on port
8080.
Pre-requisites
Node.js
The Node.js server-side Javascript environment.
NPM
NPM: The Node Package Manager
curl http://npmjs.org/install.sh | sh
Install
npm install hostwithnode