Socket
Socket
Sign inDemoInstall

@sailshq/connect

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sailshq/connect

High performance middleware framework


Version published
Weekly downloads
6.3K
decreased by-5.35%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 02 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc