No description
  • TypeScript 83.3%
  • JavaScript 16.7%
Find a file
2023-03-27 21:53:35 +01:00
.github/workflows improve readme and add workflows 2023-03-27 21:53:35 +01:00
.vscode add api support for formatting, 0.3.1 2023-03-25 13:54:05 +00:00
src improve readme and add workflows 2023-03-27 21:53:35 +01:00
.gitignore initial commit 2023-01-10 16:41:13 +00:00
.prettierignore add api support for formatting, 0.3.1 2023-03-25 13:54:05 +00:00
.prettierrc.json add api support for formatting, 0.3.1 2023-03-25 13:54:05 +00:00
package-lock.json fix onData, 0.4.1 2023-03-27 16:04:43 +01:00
package.json improve readme and add workflows 2023-03-27 21:53:35 +01:00
README.md improve readme and add workflows 2023-03-27 21:53:35 +01:00
tsconfig.json better errors and cjs support, release 0.2.1 2023-03-12 18:38:58 +00:00
tsup.config.ts better errors and cjs support, release 0.2.1 2023-03-12 18:38:58 +00:00

tusc

If you want something more stable and easy to use, check out tusc-gui

A wrapper around yt-dlp that makes it easier to use for non-technical users

It's on an early stage with a lot of changes expected to happen, if you want something stable, you should probably use its JavaScript API, tusc-gui, or yt-dlp directly

Installation

npm i -g @superchupu/tusc

Windows is the only supported platform for now

Usage

tusc <url> [options]

Options

-e - Makes explorer not open on finish

--update - Updates tusc's yt-dlp installation

API

import { run } from '@superchupu/tusc';

await run({
  url: 'https://youtu.be/7cXgViHb4NM',
  resolution: 1080,
  extension: 'mp4',
  openExplorer: false
});

Options

export interface TuscOptions {
  extension?: Extension;
  onData?: (data: string) => unknown;
  onErrorData?: (data: string) => unknown;
  openExplorer: boolean;
  path: string;
  resolution?: number | 'best';
  url: string | null;
  ytDlpPath?: string;
}