更新readme
parent
e2433cba13
commit
819361737f
15
Readme.md
15
Readme.md
|
@ -1,4 +1,6 @@
|
|||
![module info](https://nodei.co/npm/@gm5/jwt.png?downloads=true&downloadRank=true&stars=true)
|
||||
|
||||
![downloads](https://img.shields.io/npm/dt/@gm5/jwt.svg)
|
||||
![version](https://img.shields.io/npm/v/@gm5/jwt.svg)
|
||||
|
||||
# @gm5/jwt
|
||||
|
||||
|
@ -14,10 +16,13 @@ npm install @gm5/jwt
|
|||
|
||||
```js
|
||||
|
||||
import Five from '@gm5/code'
|
||||
import jwt from '@gm5/jwt'
|
||||
import { createApp } from '@gm5/code'
|
||||
import { createJwt, JwtModule } from '@gm5/jwt'
|
||||
|
||||
var app = new Five()
|
||||
app.install(jwt)
|
||||
var app = createApp()
|
||||
|
||||
app.install(JwtModule)
|
||||
.use(createJwt())
|
||||
.run()
|
||||
|
||||
```
|
Loading…
Reference in New Issue