Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

couple

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

couple

Couple is an event based collaboration of NodeJS, Express, Socket.IO, Jade and Stylus

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

#Couple

Couple is an event based collaboration of NodeJS, Express, Socket.IO, Jade and Stylus

##Installing:

npm install couple

##Usage:

var couple = require('couple');

var app = new couple({
    port: 8080
});

app.start();

##Options:

port: Number //change the listen to port, Default: 80
sid: String //the key to use for express session store, Default: couple.sid
secret: String //the secret to use for express session store, Default: secret
view: String //the directory where the views are, Default: ''
viewCahce: Boolean //whether or not to enable view caching, Default: false
viewLayout: Boolean //whether or not to enable global layout, Default: false
static: String //the directory where to serve static files from, Default: 'public'
routes: Function(express) //function to call to establish any special routes, Default: function(express){}
ioLog: Boolean //whether or not to enable socket.io logging, Default: false

##Events:

express::init: Function(express) //event after express has been setup
express::start: null //event after express has been started
express::stop: null //event after express has been stopped
express::request: Function(req,res) //event after the catchall route is called

io::init: Function(io) //event after socket.io has been setup
io::start: null //event after express has been started
io::stop: null //event after express has been started
io::connect: Function(socket) //event after a new client has conencted

##Functions:

Constructor( options ) //called on initialization options is an array of settings
start() //call to start the server
stop() //call to stop the server

Keywords

FAQs

Package last updated on 30 Apr 2012

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