0.0.5 • Published 13 years ago

connect-simple v0.0.5

Weekly downloads
2
License
-
Repository
github
Last release
13 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

13 years ago

0.0.4

13 years ago

0.0.3

13 years ago

0.0.2

13 years ago

0.0.1

13 years ago

0.0.0

13 years ago