New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

connect-mongolian-session

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

connect-mongolian-session

Mongolian session store for Connect

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Connect Mongolian

A connect session store that uses mongolian, use this rather than connect-mongo if you want to reuse your mongolian connection, or don't want to add additional dependencies to your project.

Installation

npm install connect-mongolian

Options

  • server - A db connection, if you already have one you want to use. the result of calling new Mongolian
  • host - hostName to connect to, defaults to "localhost"
  • db - name of database to use, defaults to "connectMongolianStore"
  • port - port to connect to, defaults to 27017
  • collection - name of the collection, defaults to "sessions"

Tests

You need to have mongo running on localhost, then...

Run em:

npm test

Usage

var connect = require("connect")
  , MongolianStore = require("connect-mongolian")(connect) //or (express) if you're using express

connect.createServer( connect.cookieParser()
                    , connect.session({ store: new MongolianStore
                                      , secret: 'keyboard cat' }))

FAQs

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