# vue-base64-upload

> Vue base64 upload

Latest version **1.0.1** (published 2017-02-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-base64-upload
pnpm add vue-base64-upload
yarn add vue-base64-upload
bun add vue-base64-upload
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-02-12 |
| First published | 2017-02-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | wenzhixin2010@gmail.com |
| Maintainers | wenzhixin |

## Links

- npm: https://www.npmjs.com/package/vue-base64-upload
- npm.io page: https://npm.io/package/vue-base64-upload

## Recent versions

- 1.0.1 (latest) — 2017-02-12
- 1.0.0 — 2017-02-12

## README

# vue-base64-upload

vue-base64-upload is an ui component library base on Vue.js(2.x).

# Usage

```html
<template>
  <base64-upload imageSrc="user.png" @change="onChangeImage"></base64-upload>
</template>
<script>
import Base64Upload from 'vue-base64-upload'

export default {
  components: {
    Base64Upload
  },
  methods: {
    onChangeImage(file) {
      /*
      {
        size: 93602,
        filetype: 'image/jpeg',
        filename: 'user.jpg',
        base64:   '/9j/4AAQSkZJRg...'
      }
      */
    }
  }
}
</script>
```

## Installation

```
npm install vue-base64-upload
```

## Example

* [Demo](https://github.com/wenzhixin/vue-base64-upload/tree/master/demo)
* [Live Example](https://wenzhixin.github.io/vue-base64-upload/demo)

## Documentation

### props

* imageSrc: String, The default image
* imageStyle: Object, Style of the default image

### events

* change: Trigger when upload an image file

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