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

connect-kyoto

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-kyoto

kyoto-tycoon session store for connect

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

connect-kyoto

connect-kyoto is a kyoto-tycoon session store.

Requirements

  • kyoto-cabinet >= 1.2.63
  • kyoto-tycoon >= 0.9.45

Installation

$ npm install connect-kyoto

Options

  • port : kyoto-tycoon port number
  • host : kyoto-tycoon hostname

Usage

connect

var KyotoStore = require('connect-kyoto').KyotoStore;
...
connect(
  ...
  connect.cookieParser(),
  connect.session({
    secret: 'youre secret here',
    cookie: {
      maxAge: 7 * 24 * 60 * 60 * 1000 // one week
    },
    store: new KyotoStore(),
  }),
  ...
).listen(3001);

express

var KyotoStore = require('connect-kyoto').KyotoStore;
...
app.configure(function(){
  ...
  app.use(express.cookieParser());
  app.use(express.session({
    secret: 'your secret here',
    store: new KyotoStore(),
    cookie: {
      maxAge: 7 * 24 * 60 * 60 * 1000 // one week
    },
  }));
  ...
});

Running Tests

connect-kyoto depends on Vows for testing.

  1. Invoke kyoto-tycoon database server by ktserver_invoker.js

    $ node ktserver_invoker.js

  2. Run the tests.

    $ vows test/*.js

License

MIT license.

TODO

  • feature : db option
  • refactoring : unit test kyoto-tycoon mock server.

Keywords

FAQs

Package last updated on 10 Mar 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