youtubei
Version:
Simple package to get information from youtube such as videos, playlists, channels, video information & comments, related videos, up next video, and more!
6 lines (5 loc) • 371 B
TypeScript
import { YoutubeRawData } from "./types";
export declare const getDuration: (s: string) => number;
export declare const stripToInt: (string: string) => number | null;
export declare const getContinuationFromItems: (items: YoutubeRawData, accessors?: string[]) => string | undefined;
export declare const mapFilter: (items: YoutubeRawData, key: string) => YoutubeRawData;