UNPKG

read-browser-cookies

Version:

Node.js version of `--cookies-from-browser` from yt-dlp

13 lines (12 loc) 354 B
/// <reference types="node" /> export type ICookieRow = { hostKey: string; name: string; value: string; encryptedValue: Buffer; path: string; expiresUtc: number; isSecure: number; }; export type ICookie = Omit<ICookieRow, 'encryptedValue'>; export declare function query(dbpath: string, site?: string): Promise<ICookieRow[]>;