🚀 初始版本发布

This commit is contained in:
陈小术 2021-10-08 14:01:47 +08:00
parent f1d26cbdcf
commit 32e7a2be37
1 changed files with 5 additions and 3 deletions

View File

@ -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"