# saveytbvideo

> download and save youtube video

Latest version **1.0.2** (published 2020-03-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install saveytbvideo
pnpm add saveytbvideo
yarn add saveytbvideo
bun add saveytbvideo
```

## 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.2 |
| Published | 2020-03-06 |
| First published | 2020-03-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 7.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | phungluan |
| Maintainers | phungbaluan |

## Links

- npm: https://www.npmjs.com/package/saveytbvideo
- npm.io page: https://npm.io/package/saveytbvideo

## Dependencies (5)

- [ytdl-core](https://npm.io/package/ytdl-core.md) ^2.0.0
- [await-to-js](https://npm.io/package/await-to-js.md) ^2.1.1
- [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
- [@ffprobe-installer/ffprobe](https://npm.io/package/@ffprobe-installer/ffprobe.md) ^1.0.12

## Recent versions

- 1.0.2 (latest) — 2020-03-06
- 1.0.1 — 2020-03-06
- 1.0.0 — 2020-03-06

## README

exports.download = async (req, res, next) => {

    try {
        let id = '2MoGxae-zyo'; //id of youtube video
        let saveYtbVideo = new SaveYtbVideo(id);
        saveYtbVideo.path = './public';  //path to store video
        // saveYtbVideo.saveVideo()
        const [error, result] = await to(saveYtbVideo.saveVideo({
            splits: [
                {startTime: 37, duration: 806}
            ]
        }));

    } catch (err) {
        next(err);
    }
}

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