diff --git a/package.json b/package.json index ae092d0..d66f3d6 100755 --- a/package.json +++ b/package.json @@ -18,13 +18,13 @@ "redis", "cookies" ], - "version": "1.0.5", + "version": "1.0.6", "dependencies": { "express-session": "^1.17.1", "mongoose": "5.11.13", "redis": "0.x.x" }, - "main": "./lib/index.js", + "main": "./index.js", "readme": "# express-sessions\n\nExpressJS/Mongoose Session Storage\n\n## Installation\n\n```\nnpm install express-sessions\n```\n\n## Usage\n\n``` js\nvar mongoose = require('mongoose');\n\nmongoose.connect();\n\napp.use(express.session({\n secret: 'a4f8071f-c873-4447-8ee2',\n cookie: { maxAge: 2628000000 },\n store: new (require('express-sessions'))({\n storage: 'mongodb',\n instance: mongoose, // optional\n host: 'localhost', // optional\n port: 27017, // optional\n db: 'test', // optional\n collection: 'sessions', // optional\n expire: 86400 // optional\n })\n}));\n```\nOr\n\n``` js\nvar redis = require('redis');\nvar client = redis.createClient(6379, 'localhost');\n\napp.use(express.session({\n secret: 'a4f8071f-c873-4447-8ee2',\n cookie: { maxAge: 2628000000 },\n store: new (require('express-sessions'))({\n storage: 'redis',\n instance: client, // optional\n host: 'localhost', // optional\n port: 6379, // optional\n collection: 'sessions', // optional\n expire: 86400 // optional\n })\n}));\n```\n\nThat's it!", "_id": "express-sessions@1.0.5", "_from": "express-sessions@1.0.5"