isWindowsAbsolutePath (src/executor.ts)

playwriter · playwriter/src/executor.ts · typescript · MIT
scraping

Checks if a path is a Windows absolute path for cross-platform handling

// Source: https://github.com/remorses/playwriter | License: MIT | Copyright 2026 Tommy D. Rossi
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * PlaywrightExecutor - Manages browser connection and code execution per session.
 * Used by both MCP and CLI to execute Playwright code with persistent state.
 */

import type { Page, Frame, Browser, BrowserContext, Locator, FrameLocator, ElementHandle } from '@xmorse/playwright-core'
import { getChromium, isPatchrightEnabled } from './playwright-import.js'
import crypto from 'node:crypto'
import fs from 'node:fs'
import path from 'node:path'
import os from 'node:os'
import util from 'node:util'
import { createRequire } from 'node:module'
import { fileURLToPath } from 'node:url'
import vm from 'node:vm'
import { AsyncLocalSt

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key