# vuejs-avatar-crop

> Support cutting of avatars of PC and mobile phones.

Latest version **1.1.0** (published 2020-04-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install vuejs-avatar-crop
pnpm add vuejs-avatar-crop
yarn add vuejs-avatar-crop
bun add vuejs-avatar-crop
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2020-04-16 |
| First published | 2020-04-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 2.6 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | virjay |
| Maintainers | virjay |
| Keywords | avatar-crop, 头像裁剪, 微信头像裁剪, wechat |

## Links

- npm: https://www.npmjs.com/package/vuejs-avatar-crop
- Repository: https://github.com/varjay/avatar-crop
- Homepage: https://github.com/varjay/avatar-crop#readme
- Issues: https://github.com/varjay/avatar-crop/issues
- npm.io page: https://npm.io/package/vuejs-avatar-crop

## Dependencies (4)

- [vue](https://npm.io/package/vue.md) ^2.5.17
- [vuex](https://npm.io/package/vuex.md) ^3.0.1
- [vue-router](https://npm.io/package/vue-router.md) ^3.0.1
- [register-service-worker](https://npm.io/package/register-service-worker.md) ^1.5.2

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.1.0 (latest) — 2020-04-16
- 1.0.9 — 2020-04-16
- 1.0.8 — 2020-04-16

## README

# avatar-crop
![image](https://github.com/varjay/avatar-crop/raw/master/public/img/demo.gif)
### 安装
```
npm i vue-avatar-crop-wechat --save
```

### 如何使用
``` js
// 导入
import avatar from 'vue-avatar-crop-wechat'
Vue.use(avatar)

// 使用
<vue-avatar @cancel="cancel" @done="done" :file="file" />
```

### 参数
``` js
// cancel: 取消操作，没有参数。
// done: 返回
{
  base64: 'base64图片',
  img: 'blob图片',
  url: 'blob的url地址',
}
```

### Lints and fixes files
```
npm run lint
```

---
_Source: https://npm.io/package/vuejs-avatar-crop · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
