From 0b01b0f975d399ea2a37b6c479dcb17c1f85bd9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Sun, 27 Sep 2020 14:23:28 +0800 Subject: [PATCH] readme --- Readme.md | 13 ++++++++++++- package.json | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) 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"