Skip to main content

macOSRecord

Contents:

macOSRecord(filePath)

Start a screen recording on MacOS.

import { macOSRecord } from "@guidepup/guidepup";

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

// ... perform some commands.

// Stop the screen recording.
stopRecording();
})();

Parameters:

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

Returns: <Function> A function to stop the screen recording.