switched to new way :)

This commit is contained in:
Boki 2026-02-13 01:12:11 -05:00
parent b03a2a25f1
commit f22d182c8f
30 changed files with 0 additions and 0 deletions

View file

@ -1,13 +0,0 @@
import { execSync } from 'child_process';
export function readClipboard(): string {
try {
return execSync('powershell -command "Get-Clipboard"', { encoding: 'utf-8' }).trim();
} catch {
return '';
}
}
export function writeClipboard(text: string): void {
execSync(`powershell -command "Set-Clipboard -Value '${text.replace(/'/g, "''")}'"`);
}