loki-session
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "loki-session", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A session store for express-session powered by Loki.js", | ||
"main": "test/server.js", | ||
"main": "lib/loki-session.js", | ||
"scripts": { | ||
@@ -7,0 +7,0 @@ "start": "node test/server.js" |
@@ -1,2 +0,2 @@ | ||
loki-session 0.1.0 | ||
loki-session 0.1.1 | ||
================== | ||
@@ -13,1 +13,22 @@ | ||
- Unit Tests | ||
##Example## | ||
var express = require('express'), | ||
session = require('express-session'), | ||
store = require('loki-session'), | ||
app = express(); | ||
app.use(session({ | ||
secret: '34PQ2R89t32kRxwF5QB6r4EmZQZGf73pek5TuSFae565FX8bT6GPfHSZ9t659ZYq', | ||
name: 'loki-session', | ||
resave: true, | ||
store: store(__dirname + '/bin/db.json'), | ||
saveUninitialized: true | ||
})); | ||
app.use(function(req, res) { | ||
res.send('Session store powered by loki-session!'); | ||
}); | ||
app.listen(3000); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5657
34