Skip to main content

windowsRecord

Contents:

windowsRecord(filepath)​

Start a screen recording on Windows.

import { windowsRecord } from "@guidepup/record";

(async () => {
// Start the screen recording.
const stopRecording = windowsRecord("./recordings/screenRecording.mp4");

// ... perform some commands.

// Stop and finalize the screen recording.
await stopRecording();
})();

Parameters:

  • filepath string The file path to save the screen recording to.

Returns: Function An async function returning Promise<void> that stops and finalizes the screen recording.