# connect-mongolian-session

> Mongolian session store for Connect

Latest version **0.0.1** (published 2012-04-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install connect-mongolian-session
pnpm add connect-mongolian-session
yarn add connect-mongolian-session
bun add connect-mongolian-session
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2012-04-11 |
| First published | 2012-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.4.x |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Zach Smith |
| Maintainers | SpaceMagic |

## Links

- npm: https://www.npmjs.com/package/connect-mongolian-session
- Repository: https://github.com/xcoderzach/connect-mongolian
- npm.io page: https://npm.io/package/connect-mongolian-session

## Dependencies (1)

- [mongolian](https://npm.io/package/mongolian.md) >= 0.1.x

## Recent versions

- 0.0.1 (latest) — 2012-04-11

## README

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
-----

```javascript
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' }))
```

---
_Source: https://npm.io/package/connect-mongolian-session · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
