Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/matschik/vodtwitch

📼 Download any public vod from Twitch
https://github.com/matschik/vodtwitch

twitch

Last synced: about 2 months ago
JSON representation

📼 Download any public vod from Twitch

Awesome Lists containing this project

README

        

# vodtwitch

> Download any public vod from Twitch


npm version


license


## Install

```bash
npm i -g vodtwitch
# pnpm add -g vodtwitch
```

## Usage

### CLI

```sh
# with VOD ID
$ vodtwitch 787450673

# private VOD using your OAuth token taken from Twitch when logged in
$ vodtwitch --token 0aze9batw2zc2tj29nl4mywkqgb1kn 787450673

# you can specify an output directory
$ vodtwitch 787450673 -o my/best/vods

# also works with VOD URL
$ vodtwitch https://www.twitch.tv/videos/787450673

# more command options
$ vodtwitch -h
```

It will save to your current directory as `{vodID}.ts`.

### NodeJS

```js
import vodtwitch from "vodtwitch";

async function main() {
await vodtwitch(787450673, { outputDir: process.cwd() });
}

main().catch(console.error);
```