node-csfd-api
Version:
ČSFD API in JavaScript. Amazing NPM library for scrapping csfd.cz :)
18 lines (17 loc) • 637 B
TypeScript
import { CSFDColorRating } from '../interfaces/global';
import { Colors } from '../interfaces/user-ratings.interface';
export declare const parseIdFromUrl: (url: string) => number;
export declare const getColor: (cls: string) => CSFDColorRating;
export declare const parseColor: (quality: Colors) => CSFDColorRating;
export declare const addProtocol: (url: string) => string;
export declare const getDuration: (matches: any[]) => {
sign: string;
years: any;
months: any;
weeks: any;
days: any;
hours: any;
minutes: any;
seconds: any;
};
export declare const parseISO8601Duration: (iso: string) => number;