# node-video-resize

> Video resize.

Latest version **1.0.1** (published 2020-06-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-video-resize
pnpm add node-video-resize
yarn add node-video-resize
bun add node-video-resize
```

## 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 | 2020-06-22 |
| First published | 2020-06-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | AlfieriChou |
| Maintainers | alfieri |

## Links

- npm: https://www.npmjs.com/package/node-video-resize
- Repository: https://github.com/AlfieriChou/node-video-resize
- Homepage: https://github.com/AlfieriChou/node-video-resize#readme
- Issues: https://github.com/AlfieriChou/node-video-resize/issues
- npm.io page: https://npm.io/package/node-video-resize

## Dependencies (2)

- [fluent-ffmpeg](https://npm.io/package/fluent-ffmpeg.md) ^2.1.2
- [@ffmpeg-installer/ffmpeg](https://npm.io/package/@ffmpeg-installer/ffmpeg.md) ^1.0.20

## Recent versions

- 1.0.1 (latest) — 2020-06-22
- 1.0.0 — 2020-06-22

## README

# node-video-resize

video resize.

## example

* load video info

```javascript
const { loadVideoInfo } = require('./')
const path = require('path')

const videoPath = path.resolve(__dirname, './__tests__/test.mp4')

const bootstrap = async () => {
  const ret = await loadVideoInfo(videoPath)
  console.log(ret)
}

bootstrap()
```

* resize video

```javascript
const { videoResize } = require('./')
const path = require('path')

const videoPath = path.resolve(__dirname, './__tests__/test.mp4')
const outputPath = path.resolve(__dirname, './video/output.mp4')

const bootstrap = async () => {
  const ret = await videoResize({
    inputPath: videoPath,
    outputPath,
    format: 'mp4',
    size: '640x480'
  })
  console.log(ret)
}

bootstrap()
```

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