forked from postman/itriton-captcha
🚀 初始版本发布
This commit is contained in:
parent
f1d26cbdcf
commit
32e7a2be37
|
@ -1,8 +1,11 @@
|
|||
# itriton-captcha
|
||||
|
||||
#### 介绍
|
||||
### 介绍
|
||||
生成滑动验证码拼图图片和背景图片
|
||||
|
||||
### 安装
|
||||
`npm i @itriton/captcha`
|
||||
|
||||
### 使用方法
|
||||
```
|
||||
const captcha = require('@itriton/captcha')
|
||||
|
@ -12,11 +15,10 @@ captcha.create().then(res=>{
|
|||
})
|
||||
```
|
||||
|
||||
### sharp安装失败解决方案
|
||||
### 安装sharp失败的解决方案
|
||||
|
||||
切换成淘宝镜像再执行`npm install sharp`命令
|
||||
```
|
||||
|
||||
npm config set sharp_binary_host "https://npm.taobao.org/mirrors/sharp"
|
||||
|
||||
npm config set sharp_libvips_binary_host "https://npm.taobao.org/mirrors/sharp-libvips"
|
||||
|
|
Loading…
Reference in New Issue