UNPKG

@yume-chan/scrcpy

Version:
14 lines 400 B
export function parseDisplay(line) { const match = line.match(/^\s+--display-id=(\d+)\s+\(([^)]+)\)$/); if (match) { const display = { id: Number.parseInt(match[1], 10), }; if (match[2] !== "size unknown") { display.resolution = match[2]; } return display; } return undefined; } //# sourceMappingURL=parse-display.js.map