v1
宇天 2020-09-27 14:23:28 +08:00
parent 0149357fd2
commit 0b01b0f975
2 changed files with 13 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# @gm5/session # @gm5/session
> 会话中间件 > 会话拓展包
## 安装 ## 安装
@ -10,3 +10,14 @@
npm install @gm5/session npm install @gm5/session
``` ```
## 使用
```js
import { sessionPackage, sessionConnect } from '@gm5/session'
app.install(sessionPackage)
app.use(sessionConnect)
```

View File

@ -4,7 +4,7 @@
"type": "module", "type": "module",
"description": "会话中间件。", "description": "会话中间件。",
"main": "index.js", "main": "index.js",
"author": "yutent", "author": "yutent <yutent.io@gmail.com>",
"keywords": ["fivejs", "controller", "http"], "keywords": ["fivejs", "controller", "http"],
"repository": "https://github.com/bytedo/gmf.session.git", "repository": "https://github.com/bytedo/gmf.session.git",
"license": "MIT" "license": "MIT"