
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
capturekit
Advanced tools
Record the screen on macOS with ScreenCaptureKit.
npm install capturekit
Requires macOS 12.0 or later.
import {setTimeout} from 'node:timers/promises';
import { recorder } from 'capturekit';
const options = {
fps: 30,
cropArea: {
x: 100,
y: 100,
width: 500,
height: 500,
},
};
await recorder.startRecording(options);
await setTimeout(3000);
console.log(await recorder.stopRecording());
//=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/cdf4f7df426c97880f8c10a1600879f7.mov'
Promise<Object[]>
Get a list of screens. The first screen is the primary screen.
Example:
[
{
id: 69732482,
name: 'Color LCD',
},
];
Promise<Object[]>
Get a list of audio devices.
Example:
[
{
id: 'AppleHDAEngineInput:1B,0,1,0:1',
name: 'Built-in Microphone',
},
];
Returns a Promise
that fullfills when the recording starts or rejects if the recording didn't start after 5 seconds.
Returns a Promise
for the path to the screen recording file.
Type: object
Type: number
Default: 30
Number of frames per seconds.
Type: object
Default: undefined
Record only an area of the screen. Accepts an object with x
, y
, width
, height
properties.
Type: boolean
Default: true
Show the cursor in the screen recording.
Type: number
Default: capture.screens()[0]
(Primary screen)
Screen to record.
providing a JavaScript interface to the best available method for recording the screen using ScreenCaptureKit.
FAQs
Record the screen on macOS with ScreenCaptureKit
The npm package capturekit receives a total of 9 weekly downloads. As such, capturekit popularity was classified as not popular.
We found that capturekit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.