@sailshq/connect
High performance middleware framework
Last updated 8 years ago by sgress454 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @sailshq/connect 
SYNC missed versions from official npm registry.

Connect

NPM Version NPM Downloads Build Status Test Coverage Gratipay

Connect is an extensible HTTP server framework for node, providing high performance "plugins" known as middleware.

Connect is bundled with over 20 commonly used middleware, including a logger, session support, cookie parser, and more. Be sure to view the 2.x documentation.

var connect = require('connect')
  , http = require('http');

var app = connect()
  .use(connect.favicon('public/favicon.ico'))
  .use(connect.logger('dev'))
  .use(connect.static('public'))
  .use(connect.directory('public'))
  .use(connect.cookieParser())
  .use(connect.session({ secret: 'my secret here' }))
  .use(function(req, res){
    res.end('Hello from Connect!\n');
  });

http.createServer(app).listen(3000);

Middleware

Running Tests

first:

$ npm install -d

then:

$ npm test

Contributors

https://github.com/senchalabs/connect/graphs/contributors

Node Compatibility

Connect < 1.x is compatible with node 0.2.x

Connect 1.x is compatible with node 0.4.x

Connect 2.x is compatible with node 0.8.x, 0.10.x, and 0.12.x

License

MIT

Current Tags

  • 2.30.3                                ...           latest (8 years ago)

1 Versions

  • 2.30.3                                ...           8 years ago
Maintainers (1)
Downloads
Total 2
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (31)
Dev Dependencies (4)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE