0.0.5 • Published 12 years ago
connect-simple v0.0.5
A simple connect middleware for rapidly creating pages
Install
npm install connect-simple
Usage
Use the connect middleware like so...
var connect = require('connect');
var simple = require('connect-simple');
var app = connect().use(simple()).listen(3000);
In your app's root directory, create the file ./www/index.js
var ua = this.headers['user-agent'];
NODE_RESPONSE.end(ua);
Start your app, and go to http://localhost:3000, you should see your browser's user agent
TODO
- File caching