Parses browser-related inputs like cookies and headers into structured Playwright context configuration objects.
// Source: https://github.com/dembrandt/dembrandt | License: MIT | Copyright 2025 thevangelist
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Pure parsing of CLI-supplied browser-context inputs (cookies, headers, screen
* size, locale) into Playwright context configuration. Split out of the
* extraction orchestrator so the untrusted-input surface is unit-testable and
* malformed input degrades to safe defaults instead of producing broken values.
*
* Written strict-clean (no implicit any, no null leaks) per the per-module
* strict ratchet, even though the global tsconfig is strict:false.
*/
import type { ExtractOptions } from '../types.js';
import type { StorageState, HttpCredentials } from './auth-session.js';
export interface ParsedCookie {
readonly name
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key