UNPKG

@ginlink/chrome-webstore-meta

Version:

Get chrome extension item meta from Web Store.

39 lines (32 loc) 719 B
export interface RequestConfig { headers?: Record<string, string>; qs?: Record<string, string>; } interface InteractionCount { UserDownloads: number; } export interface ChromeWebstoreMetaResult { type: string; name: string; description: string; image: string; url: string; version: string; id: string; price?: string; priceCurrency?: string; interactionCount?: InteractionCount; operatingSystem?: string; ratingValue?: number; ratingCount?: number; } export interface IPrepare { getConfig: () => RequestConfig; getUrl: () => string; } export interface IRequester { get: () => Promise<string>; } export interface IConverter { run: () => Promise<ChromeWebstoreMetaResult>; }