0.0.5 • Published 12 years ago

connect-simple v0.0.5

Weekly downloads
2
License
-
Repository
github
Last release
12 years ago

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
0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago

0.0.0

12 years ago