
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
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 21 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.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.