{"_id":"egg-session","_rev":"1212981","name":"egg-session","description":"session plugin for egg","dist-tags":{"2.x":"2.2.0","latest":"3.3.0"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"time":{"modified":"2021-10-13T05:46:36.000Z","created":"2016-05-26T09:11:14.723Z","3.3.0":"2021-03-23T08:02:54.506Z","3.2.0":"2020-05-12T06:41:49.609Z","2.2.0":"2018-01-09T10:58:15.614Z","3.1.0":"2018-01-09T10:55:47.054Z","3.0.0":"2017-11-09T06:12:51.728Z","2.1.1":"2017-06-04T14:23:12.190Z","2.1.0":"2017-03-02T10:23:30.800Z","2.0.0":"2017-02-28T13:00:11.726Z","1.1.0":"2016-11-17T05:47:53.764Z","1.0.0":"2016-11-03T10:17:24.165Z","0.0.2":"2016-07-14T09:45:56.065Z","0.0.1":"2016-05-26T09:11:14.723Z"},"users":{},"author":{"name":"dead_horse"},"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-session.git"},"versions":{"3.3.0":{"name":"egg-session","version":"3.3.0","description":"session plugin for egg","eggPlugin":{"name":"session"},"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-session.git"},"keywords":["egg","egg-plugin","eggPlugin","session","cookie"],"dependencies":{"koa-session":"^6.0.0"},"devDependencies":{"autod":"^2.10.1","egg":"next","egg-bin":"^4.3.5","egg-ci":"^1.8.0","egg-mock":"^3.13.1","egg-redis":"^1.0.1","eslint":"^4.10.0","eslint-config-egg":"^5.1.1","mz-modules":"^2.0.0","supertest":"^3.0.0"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint .","test":"npm run lint -- --fix && egg-bin test","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"8, 10, 12","services":"redis-server","type":"travis"},"author":{"name":"dead_horse"},"gitHead":"1ee915bf4e1983c5f34f3bfbff3366b0b210b485","bugs":{"url":"https://github.com/eggjs/egg-session/issues"},"homepage":"https://github.com/eggjs/egg-session#readme","_id":"egg-session@3.3.0","_nodeVersion":"14.15.1","_npmVersion":"6.11.3","dist":{"shasum":"401b52da2515623ea7e41cfc6a857db5f5138aac","size":4551,"noattachment":false,"key":"/egg-session/-/egg-session-3.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-session/download/egg-session-3.3.0.tgz"},"_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"directories":{},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-session_3.3.0_1616486574301_0.7419064128758863"},"_hasShrinkwrap":false,"publish_time":1616486574506,"_cnpm_publish_time":1616486574506},"3.2.0":{"name":"egg-session","version":"3.2.0","description":"session plugin for egg","eggPlugin":{"name":"session"},"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-session.git"},"keywords":["egg","egg-plugin","eggPlugin","session","cookie"],"dependencies":{"koa-session":"^6.0.0"},"devDependencies":{"autod":"^2.10.1","egg":"next","egg-bin":"^4.3.5","egg-ci":"^1.8.0","egg-mock":"^3.13.1","egg-redis":"^1.0.1","eslint":"^4.10.0","eslint-config-egg":"^5.1.1","mz-modules":"^2.0.0","supertest":"^3.0.0"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint .","test":"npm run lint -- --fix && egg-bin test","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"8, 10, 12","services":"redis-server","type":"travis"},"author":{"name":"dead_horse"},"gitHead":"3fd2bf2fcdf03ee23d50f0706424cc9926f7ccf2","bugs":{"url":"https://github.com/eggjs/egg-session/issues"},"homepage":"https://github.com/eggjs/egg-session#readme","_id":"egg-session@3.2.0","_nodeVersion":"10.16.0","_npmVersion":"6.12.0","dist":{"shasum":"f02323516ba63c72a5d79dcbaa13df274ec3f9cd","size":4340,"noattachment":false,"key":"/egg-session/-/egg-session-3.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-session/download/egg-session-3.2.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-session_3.2.0_1589265709456_0.291557077951039"},"_hasShrinkwrap":false,"publish_time":1589265709609,"_cnpm_publish_time":1589265709609},"2.2.0":{"name":"egg-session","version":"2.2.0","description":"session plugin for egg","eggPlugin":{"name":"session"},"files":["config","app","app.js"],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-session.git"},"keywords":["egg","egg-plugin","eggPlugin","session","cookie"],"dependencies":{"koa-session":"^4.7.0"},"devDependencies":{"autod":"^2.7.1","egg":"^1.0.0-rc.1","egg-bin":"^2.2.3","egg-ci":"^1.2.0","egg-mock":"^3.0.1","egg-redis":"^1.0.1","eslint":"^3.16.1","eslint-config-egg":"^3.2.0","mz-modules":"^1.0.0","supertest":"^3.0.0"},"engines":{"node":">=6.0.0"},"scripts":{"lint":"eslint .","test":"npm run lint -- --fix && egg-bin test","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 7","services":"redis-server","type":"travis"},"publishConfig":{"tag":"2.x"},"author":{"name":"dead_horse"},"gitHead":"09d01adfaa637199183487d12d541e011db56767","bugs":{"url":"https://github.com/eggjs/egg-session/issues"},"homepage":"https://github.com/eggjs/egg-session#readme","_id":"egg-session@2.2.0","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"1f207d1989353c9017310e2cd6424c2cdf324c01","size":3715,"noattachment":false,"key":"/egg-session/-/egg-session-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-session/download/egg-session-2.2.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-session-2.2.0.tgz_1515495495536_0.11787221278063953"},"directories":{},"publish_time":1515495495614,"_hasShrinkwrap":false,"_cnpm_publish_time":1515495495614},"3.1.0":{"name":"egg-session","version":"3.1.0","description":"session plugin for egg","eggPlugin":{"name":"session"},"files":["config","app","app.js"],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-session.git"},"keywords":["egg","egg-plugin","eggPlugin","session","cookie"],"dependencies":{"koa-session":"^5.7.0"},"devDependencies":{"autod":"^2.10.1","egg":"next","egg-bin":"^4.3.5","egg-ci":"^1.8.0","egg-mock":"^3.13.1","egg-redis":"^1.0.1","eslint":"^4.10.0","eslint-config-egg":"^5.1.1","mz-modules":"^2.0.0","supertest":"^3.0.0"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint .","test":"npm run lint -- --fix && egg-bin test","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"8, 9","services":"redis-server","type":"travis"},"author":{"name":"dead_horse"},"gitHead":"2609381d798314f528a45c0a60cd5ff5d007ce00","bugs":{"url":"https://github.com/eggjs/egg-session/issues"},"homepage":"https://github.com/eggjs/egg-session#readme","_id":"egg-session@3.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"5b3baf0f6072fa55b5d13be2e6cbba17e2553bfe","size":3894,"noattachment":false,"key":"/egg-session/-/egg-session-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-session/download/egg-session-3.1.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-session-3.1.0.tgz_1515495346989_0.14920076075941324"},"directories":{},"publish_time":1515495347054,"_hasShrinkwrap":false,"_cnpm_publish_time":1515495347054},"3.0.0":{"name":"egg-session","version":"3.0.0","description":"session plugin for egg","eggPlugin":{"name":"session"},"files":["config","app","app.js"],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-session.git"},"keywords":["egg","egg-plugin","eggPlugin","session","cookie"],"dependencies":{"koa-session":"^5.5.0"},"devDependencies":{"autod":"^2.10.1","egg":"next","egg-bin":"^4.3.5","egg-ci":"^1.8.0","egg-mock":"^3.13.1","egg-redis":"^1.0.1","eslint":"^4.10.0","eslint-config-egg":"^5.1.1","mz-modules":"^2.0.0","supertest":"^3.0.0"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint .","test":"npm run lint -- --fix && egg-bin test","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"8, 9","services":"redis-server","type":"travis"},"author":{"name":"dead_horse"},"gitHead":"49e57edea83b47fba5fe3936138087f33ebc2163","bugs":{"url":"https://github.com/eggjs/egg-session/issues"},"homepage":"https://github.com/eggjs/egg-session#readme","_id":"egg-session@3.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"19f42f95f7bf0e10283779bad4798635291563eb","size":3643,"noattachment":false,"key":"/egg-session/-/egg-session-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-session/download/egg-session-3.0.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-session-3.0.0.tgz_1510207971548_0.4637005908880383"},"directories":{},"publish_time":1510207971728,"_cnpm_publish_time":1510207971728,"_hasShrinkwrap":false},"2.1.1":{"name":"egg-session","version":"2.1.1","description":"session plugin for egg","eggPlugin":{"name":"session"},"files":["config","app","app.js"],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-session.git"},"keywords":["egg","egg-plugin","eggPlugin","session","cookie"],"dependencies":{"koa-session":"^4.0.0"},"devDependencies":{"autod":"^2.7.1","egg":"^1.0.0-rc.1","egg-bin":"^2.2.3","egg-ci":"^1.2.0","egg-mock":"^3.0.1","egg-redis":"^1.0.1","eslint":"^3.16.1","eslint-config-egg":"^3.2.0","mz-modules":"^1.0.0","supertest":"^3.0.0"},"engines":{"node":">=6.0.0"},"scripts":{"lint":"eslint .","test":"npm run lint -- --fix && egg-bin test","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 7","services":"redis-server","type":"travis"},"author":{"name":"dead_horse"},"gitHead":"bd1eca6ed6cdc4b3414c37667738a7c2069feedb","bugs":{"url":"https://github.com/eggjs/egg-session/issues"},"homepage":"https://github.com/eggjs/egg-session#readme","_id":"egg-session@2.1.1","_npmVersion":"5.0.0","_nodeVersion":"8.0.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"0b8208b9a05eb5367c60e214b6a0061feb467d94","size":3469,"noattachment":false,"key":"/egg-session/-/egg-session-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-session/download/egg-session-2.1.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-session-2.1.1.tgz_1496586192069_0.980941146844998"},"directories":{},"publish_time":1496586192190,"_hasShrinkwrap":false,"_cnpm_publish_time":1496586192190},"2.1.0":{"name":"egg-session","version":"2.1.0","description":"session plugin for egg","eggPlugin":{"name":"session"},"files":["config","app","app.js"],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-session.git"},"keywords":["egg","egg-plugin","eggPlugin","session","cookie"],"dependencies":{"koa-session":"^4.0.0"},"devDependencies":{"autod":"^2.7.1","egg":"^1.0.0-rc.1","egg-bin":"^2.2.3","egg-ci":"^1.2.0","egg-mock":"^3.0.1","egg-redis":"^1.0.1","eslint":"^3.16.1","eslint-config-egg":"^3.2.0","mz-modules":"^1.0.0","supertest":"^3.0.0"},"engines":{"node":">=6.0.0"},"scripts":{"lint":"eslint .","test":"npm run lint -- --fix && egg-bin test","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 7","services":"redis-server","type":"travis"},"author":{"name":"dead_horse"},"gitHead":"4f713d7bcd37613932185eb8092294660929c719","bugs":{"url":"https://github.com/eggjs/egg-session/issues"},"homepage":"https://github.com/eggjs/egg-session#readme","_id":"egg-session@2.1.0","_shasum":"06ad740105b7b56fa4f2dbf760db2669a3678d7e","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"06ad740105b7b56fa4f2dbf760db2669a3678d7e","size":3436,"noattachment":false,"key":"/egg-session/-/egg-session-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-session/download/egg-session-2.1.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/egg-session-2.1.0.tgz_1488450208961_0.6267498270608485"},"directories":{},"publish_time":1488450210800,"_cnpm_publish_time":1488450210800,"_hasShrinkwrap":false},"2.0.0":{"name":"egg-session","version":"2.0.0","description":"session plugin for egg","eggPlugin":{"name":"session"},"files":["config","app","app.js"],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-session.git"},"keywords":["egg","egg-plugin","eggPlugin","session","cookie"],"dependencies":{"koa-session":"^4.0.0"},"devDependencies":{"autod":"^2.7.1","egg":"^1.0.0-rc.1","egg-bin":"^2.2.3","egg-ci":"^1.2.0","egg-mock":"^3.0.1","egg-redis":"^1.0.1","eslint":"^3.16.1","eslint-config-egg":"^3.2.0","mz-modules":"^1.0.0","supertest":"^3.0.0"},"engines":{"node":">=6.0.0"},"scripts":{"lint":"eslint .","test":"npm run lint -- --fix && egg-bin test","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 7","services":"redis-server","type":"travis"},"author":{"name":"dead_horse"},"gitHead":"692db3b2da2bef07ff935501ff4af06a8c8397ff","bugs":{"url":"https://github.com/eggjs/egg-session/issues"},"homepage":"https://github.com/eggjs/egg-session#readme","_id":"egg-session@2.0.0","_shasum":"1bc5d87189d135df2f2d2fb08ef808bd6160724c","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"1bc5d87189d135df2f2d2fb08ef808bd6160724c","size":3252,"noattachment":false,"key":"/egg-session/-/egg-session-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-session/download/egg-session-2.0.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-session-2.0.0.tgz_1488286811505_0.4845045721158385"},"directories":{},"publish_time":1488286811726,"_cnpm_publish_time":1488286811726,"_hasShrinkwrap":false},"1.1.0":{"name":"egg-session","version":"1.1.0","description":"session plugin for egg","eggPlugin":{"name":"session"},"files":["config","app","app.js"],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-session.git"},"keywords":["egg","plugin","session","cookie"],"dependencies":{"koa-compose":"^2.5.1","koa-session":"^3.4.0"},"devDependencies":{"autod":"^2.7.1","egg":"*","egg-bin":"^1.7.0","egg-ci":"^1.0.3","egg-mock":"^1.1.0","eslint":"^3.9.1","eslint-config-egg":"^3.1.0","intelli-espower-loader":"^1.0.1","power-assert":"^1.4.2","should":"^11.1.1","supertest":"^2.0.1"},"engines":{"node":">=4.0.0"},"scripts":{"lint":"eslint .","test":"npm run lint -- --fix&& egg-bin test -r intelli-espower-loader","cov":"egg-bin cov -r intelli-espower-loader","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"4, 6, 7"},"author":{"name":"dead_horse"},"gitHead":"6baa9fff10812ac28e2fdf41d1b37cd06024ccb9","bugs":{"url":"https://github.com/eggjs/egg-session/issues"},"homepage":"https://github.com/eggjs/egg-session#readme","_id":"egg-session@1.1.0","_shasum":"9cf4df9d5c5c82fcf9276f76700bdf910e117b6c","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"9cf4df9d5c5c82fcf9276f76700bdf910e117b6c","size":2562,"noattachment":false,"key":"/egg-session/-/egg-session-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-session/download/egg-session-1.1.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/egg-session-1.1.0.tgz_1479361673216_0.7356142981443554"},"directories":{},"publish_time":1479361673764,"_cnpm_publish_time":1479361673764,"_hasShrinkwrap":false},"1.0.0":{"name":"egg-session","version":"1.0.0","description":"session plugin for egg","eggPlugin":{"name":"session"},"files":["config","app","app.js"],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-session.git"},"keywords":["egg","plugin","session","cookie"],"dependencies":{"koa-session":"^3.4.0"},"devDependencies":{"autod":"^2.7.1","egg":"*","egg-bin":"^1.7.0","egg-ci":"^1.0.3","egg-mock":"^1.1.0","eslint":"^3.9.1","eslint-config-egg":"^3.1.0","should":"^11.1.1","supertest":"^2.0.1"},"engines":{"node":">=4.0.0"},"scripts":{"test":"npm run lint -- --fix&& npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"4, 6, 7"},"author":{"name":"dead_horse"},"gitHead":"783b5a758adba76d6e923a673f6761242f5b8a0e","bugs":{"url":"https://github.com/eggjs/egg-session/issues"},"homepage":"https://github.com/eggjs/egg-session#readme","_id":"egg-session@1.0.0","_shasum":"7d05bca278af3821b6402ddcc0f7e4e0c90bef25","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.0","_npmUser":{"name":"atian25","email":"atian25@qq.com"},"dist":{"shasum":"7d05bca278af3821b6402ddcc0f7e4e0c90bef25","size":2177,"noattachment":false,"key":"/egg-session/-/egg-session-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-session/download/egg-session-1.0.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/egg-session-1.0.0.tgz_1478168243654_0.30945004522800446"},"directories":{},"publish_time":1478168244165,"_cnpm_publish_time":1478168244165,"_hasShrinkwrap":false},"0.0.2":{"name":"egg-session","version":"0.0.2","description":"session plugin for egg","eggPlugin":{"name":"session"},"files":["config","app","app.js"],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-session.git"},"keywords":["egg","plugin","session","cookie"],"dependencies":{"koa-session":"^3.3.1"},"devDependencies":{"autod":"^2.6.1","egg-bin":"^1.0.2","egg-ci":"^1.0.2","eslint":"^3.0.1","eslint-config-egg":"^3.1.0","should":"^9.0.2","supertest":"^1.2.0"},"engines":{"node":">=4.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js . --fix","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"4, 6"},"author":{"name":"dead_horse"},"gitHead":"c9b1929126d9dca38049827a8db64abc154a4781","bugs":{"url":"https://github.com/eggjs/egg-session/issues"},"homepage":"https://github.com/eggjs/egg-session#readme","_id":"egg-session@0.0.2","_shasum":"e5aefebc74e2ec1eab6123dba74615204b485c62","_from":".","_npmVersion":"3.10.3","_nodeVersion":"4.4.7","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"e5aefebc74e2ec1eab6123dba74615204b485c62","size":2093,"noattachment":false,"key":"/egg-session/-/egg-session-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-session/download/egg-session-0.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/egg-session-0.0.2.tgz_1468489554051_0.4646400869823992"},"directories":{},"publish_time":1468489556065,"_cnpm_publish_time":1468489556065,"_hasShrinkwrap":false},"0.0.1":{"name":"egg-session","version":"0.0.1","description":"egg plugin <egg-session>","keywords":["egg","eggjs","egg-plugin"],"homepage":"https://github.com/eggjs/egg-session","license":"MIT","author":{"name":"eggjs"},"contributors":[{"name":"TZ","email":"atian25@qq.com"},{"name":"popomore","email":"sakura9515@gmail.com"},{"name":"fengmk2","email":"m@fengmk2.com"},{"name":"dead-horse","email":"heyiyu.deadhorse@gmail.com"}],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-session.git"},"bugs":{"url":"https://github.com/eggjs/egg-session/issues"},"_id":"egg-session@0.0.1","scripts":{},"_shasum":"226c2d43e42588f5daeaecf6705bee7eb162f4c2","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.4","_npmUser":{"name":"atian25","email":"atian25@qq.com"},"dist":{"shasum":"226c2d43e42588f5daeaecf6705bee7eb162f4c2","size":421,"noattachment":false,"key":"/egg-session/-/egg-session-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-session/download/egg-session-0.0.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/egg-session-0.0.1.tgz_1464253872059_0.7546663964167237"},"directories":{},"publish_time":1464253874723,"_cnpm_publish_time":1464253874723,"_hasShrinkwrap":false}},"readme":"# egg-session\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/egg-session.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/egg-session\n[travis-image]: https://img.shields.io/travis/eggjs/egg-session.svg?style=flat-square\n[travis-url]: https://travis-ci.org/eggjs/egg-session\n[codecov-image]: https://codecov.io/github/eggjs/egg-session/coverage.svg?branch=master\n[codecov-url]: https://codecov.io/github/eggjs/egg-session?branch=master\n[david-image]: https://img.shields.io/david/eggjs/egg-session.svg?style=flat-square\n[david-url]: https://david-dm.org/eggjs/egg-session\n[snyk-image]: https://snyk.io/test/npm/egg-session/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/egg-session\n[download-image]: https://img.shields.io/npm/dm/egg-session.svg?style=flat-square\n[download-url]: https://npmjs.org/package/egg-session\n\nSession plugin for egg, based on [koa-session](https://github.com/koajs/session).\n\n## Install\n\n```bash\n$ npm i egg-session --save\n```\n\n## Usage\n\negg-session is a built-in plugin in egg and enabled by default.\n\n```js\n// {app_root}/config/plugin.js\nexports.session = true; // enable by default\n```\n\n### External Store\n\negg-session support external store, you can store your sessions in redis, memcached or other databases.\n\nFor example, if you want to store session in redis, you must:\n\n1. Dependent [egg-redis](https://github.com/eggjs/egg-redis)\n\n  ```bash\n  npm i --save egg-redis\n  ```\n\n2. Import egg-redis as a plugin and set the configuration\n\n  ```js\n  // config/plugin.js\n  exports.redis = {\n    enable: true,\n    package: 'egg-redis',\n  };\n  ```\n\n  ```js\n  // config/config.default.js\n  exports.redis = {\n    // your redis configurations\n  };\n  ```\n\n3. Implement a session store with redis\n\n  ```js\n  // app.js\n\n  module.exports = app => {\n    // set redis session store\n    // session store must have 3 methods\n    // define sessionStore in `app.js` so you can access `app.redis`\n    app.sessionStore = {\n      async get(key) {\n        const res = await app.redis.get(key);\n        if (!res) return null;\n        return JSON.parse(res);\n      },\n\n      async set(key, value, maxAge) {\n        // maxAge not present means session cookies\n        // we can't exactly know the maxAge and just set an appropriate value like one day\n        if (!maxAge) maxAge = 24 * 60 * 60 * 1000;\n        value = JSON.stringify(value);\n        await app.redis.set(key, value, 'PX', maxAge);\n      },\n\n      async destroy(key) {\n        await app.redis.del(key);\n      },\n    };\n\n    // session store can be a session store class\n    // app.sessionStore = class Store {\n    //   constructor(app) {\n    //     this.app = app;\n    //   }\n    //   async get() {}\n    //   async set() {}\n    //   async destroy() {}\n    // };\n  };\n  ```\n\nOnce you use external session store, session is strong dependent on your external store, you can't access session if your external store is down. **Use external session stores only if necessary, avoid use session as a cache, keep session lean and stored by cookie!**\n\n## Configuration\n\nSupport all configurations in [koa-session](https://github.com/koajs/session).\n\n* logValue\n\n```\nSupport not to print the session value when session event trigger log. Default to be true.\n```\n\n[View the default configurations](https://github.com/eggjs/egg-session/blob/master/config/config.default.js)\n\n## Questions & Suggestions\n\nPlease open an issue [here](https://github.com/eggjs/egg/issues).\n\n## License\n\n[MIT](https://github.com/eggjs/egg-session/blob/master/LICENSE)\n","_attachments":{},"homepage":"https://github.com/eggjs/egg-session#readme","bugs":{"url":"https://github.com/eggjs/egg-session/issues"}}