Permalink
Browse files

updated to use `.use`

.use is more compatible with more versions of connect (and express)
  • Loading branch information...
coolaj86 committed Oct 10, 2012
1 parent 7858da3 commit c2be43fc93655c515712072dea7d4814c7ad4695
Showing with 6 additions and 6 deletions.
  1. +6 −6 connect-nowww/README.md
View
@@ -33,16 +33,16 @@ Usage
(function () {
"use strict";
- var connect = require('connect')
+ var connect = require('connect') // or express
, nowww = require('nowww')
, server
;
- server = connect.createServer(
- nowww()
- , connect.favicon()
- , connect.static(__dirname + '/')
- );
+ server = connect.createServer()
+ .use(nowww())
+ .use(connect.favicon())
+ .use(connect.static(__dirname + '/'))
+ ;
server.listen(3000);
console.log('Listening on ', 3000);

0 comments on commit c2be43f

Please sign in to comment.