# node-ytdlp

> yet another stupid project i thought of and spent way too fucking long making

Latest version **1.0.0** (published 2022-02-11) · 0 weekly downloads

## Install

```sh
npm install node-ytdlp
pnpm add node-ytdlp
yarn add node-ytdlp
bun add node-ytdlp
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-02-11 |
| First published | 2022-02-11 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | commandtechno |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2022-02-11

## README

yet another stupid project i thought of and spent way too fucking long making

this was a test for ts generation and practice idk

sponsored by github copilot and my last two braincells

# exports

```ts
let ytdlpPath = "literally/the/path/to/the/ytdlp/executable";

interface Options {
  // all of the fucking options
  // they are all optional
  // if it has args then it can be string or string array
  // if it doesnt have args then its a boolean

  noMtime?: boolean;
  proxy?: string | string[];
}

// literally turns options into an array
function formatOptions(options: Options): string[];

// returns stdout or rejects with stderr
function ytdlp(url: string, options?: Options): Promise<string>;

// same as ytdlp but blocks the process queue
function ytdlpSync(url: string, options?: Options): string;

// use this if you dont need the output or need a stream idk
function ytdlpStream(url: string, options?: Options): ChildProcess;
```

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