# video-upload

> a module for upload video by fragment

Latest version **1.0.5** (published 2022-08-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install video-upload
pnpm add video-upload
yarn add video-upload
bun add video-upload
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2022-08-02 |
| First published | 2022-07-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 253.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | zhaoquanjun |
| Keywords | vue, vue3, video, upload, fragment |

## Links

- npm: https://www.npmjs.com/package/video-upload
- Repository: https://github.com/zhaoquanjun/vf-upload
- Homepage: https://github.com/zhaoquanjun/vf-upload#readme
- Issues: https://github.com/zhaoquanjun/vf-upload/issues
- npm.io page: https://npm.io/package/video-upload

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^3.2.37

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2022-08-02
- 1.0.4 — 2022-07-27
- 1.0.3 — 2022-07-27
- 1.0.2 — 2022-07-27
- 1.0.1 — 2022-07-27
- 1.0.0 — 2022-07-26

## README

## <p align="center">video-upload</p>

- 🔥 Written in Javascript


## Getting Started

Allright, if you want to implement a quick search, maybe you could use this.</br>
It mainly for video upload by fragment.</br>
Hope it can help complete your work smoothly

## Install

npm
```
npm install video-upload
```
cnpm
```
cnpm install video-upload
```
yarn
```
yarn add video-upload
```

## Use

This is a js for use</br>
you can import it and use as follows</br>

```

import VfUpload from 'video-upload'

const upload = new UploadVideo()

  upload.init({
    file: file, // 要上传的视频文件
    size: 1, // 单词要上传的视频大小 （M）
    url: 'https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15', // 上传路径
    method: 'post', // 上传方法
    progressCallback: (pro) => { // 每一片段上传成功后的回调函数
      progress.value = pro
    },
    compelteCallback: () => { // 全部上传完成的回调函数
      console.log('complte')
    },
  })
```

> It would expose an constructor for you to init some params where you could complete video upload work

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