UNPKG

@ernestoyoofi/yt.loader-to

Version:

An unofficial, promise-based API wrapper for `loader.to` to fetch YouTube video information and generate download links. Written in TypeScript, it's fully typed and easy to use in any Node.js project.

20 lines (19 loc) 549 B
import { AxiosRequestConfig } from "axios"; interface OptionRequest { url?: string; method?: "GET" | "POST" | "DELETE" | "PUT"; headers?: {}; params?: {}; data?: Object | String | undefined; timeout?: number; } interface ResultHTTPRequest { isError?: Boolean; error?: String | any; status?: Number; statusText?: String; headers?: {}; data?: Object | String | null; } export declare function RequestURL(url: string, options?: OptionRequest | AxiosRequestConfig): Promise<ResultHTTPRequest>; export {};