npm i eruda -D
To use eruda without installing eruda as a package, edit the src in the plugin to https://cdn.jsdelivr.net/npm/eruda.
import { defineConfig } from "vite";
import type { PluginOption } from 'vite'
npm i eruda -D
To use eruda without installing eruda as a package, edit the src in the plugin to https://cdn.jsdelivr.net/npm/eruda.
import { defineConfig } from "vite";
import type { PluginOption } from 'vite'
theme = "onedarker" | |
[editor] | |
auto-save = true | |
[editor.gutters] | |
layout = ["line-numbers", "diff"] | |
[editor.gutters.line-numbers] | |
min-width = 0 |
import subprocess | |
from yt_dlp import YoutubeDL | |
def get_video_formats(url): | |
with YoutubeDL({}) as ydl: | |
info_dict = ydl.extract_info(url, download=False) | |
formats = info_dict.get('formats', []) | |
print("{:<10} {:<5} {:>10}".format('Itag', 'Quality', 'Filesize')) |