title: express.basicAuth throwing error
body: <p>I just created the basic authentication in nodejs using express basic auth</p>
  
  <pre><code>var express = require('express');
  var app = express();
  
  // Authenticator
  app.use(express.basicAuth('testuser','testpassword'));
  
  app.get('/home', function(req, res) {
   res.send('Hello World');
  });
  
  app.listen(process.env.PORT || 8080);
  </code></pre>
  
  <p>I got the following error. I dont know where i went wrong.</p>
  
  <pre><code>app.use(express.basicAuth('testuser','testpassword'));
                  ^
  TypeError: Object function createApplication() {
    var app = function(req, res, next) {
      app.handle(req, res, next);
    };
  
    mixin(app, proto);
    mixin(app, EventEmitter.prototype);
  
    app.request = { __proto__: req, app: app };
    app.response = { __proto__: res, app: app };
    app.init();
    return app;
  } has no method 'basicAuth'
      at Object.&lt;anonymous&gt; (E:\node_modules\npm\login\app.js:5:17)
      at Module._compile (module.js:456:26)
      at Object.Module._extensions..js (module.js:474:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
      at Function.Module.runMain (module.js:497:10)
      at startup (node.js:119:16)
      at node.js:902:3
  </code></pre>
  
  <p>I'm very new to nodejs stuff. Any help would be seriously appreciated</p>