diff --git a/Readme.md b/Readme.md index 880995c..6262c84 100644 --- a/Readme.md +++ b/Readme.md @@ -2,7 +2,7 @@ # @gm5/session -> 会话中间件。 +> 会话拓展包。 ## 安装 @@ -10,3 +10,14 @@ npm install @gm5/session ``` +## 使用 + +```js +import { sessionPackage, sessionConnect } from '@gm5/session' + +app.install(sessionPackage) + +app.use(sessionConnect) + + +``` \ No newline at end of file diff --git a/package.json b/package.json index dff7a05..fdd336e 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "type": "module", "description": "会话中间件。", "main": "index.js", - "author": "yutent", + "author": "yutent ", "keywords": ["fivejs", "controller", "http"], "repository": "https://github.com/bytedo/gmf.session.git", "license": "MIT"