New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@0biwank/screen-capture

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0biwank/screen-capture

Native screen capture addon for Node.js with HLS muxing support

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

@0biwank/screen-capture

Native screen capture addon for Node.js with HLS muxing support for macOS.

Installation

npm install @0biwank/screen-capture

Platform Support

  • macOS only (darwin)

Usage

const screenCapture = require('@0biwank/screen-capture');

// List available display sources
const displays = screenCapture.listDisplaySources();
console.log('Available displays:', displays);

// List available window sources
const windows = screenCapture.listWindowSources();
console.log('Available windows:', windows);

// Select a source (display or window)
const sourceId = displays[0].id; // or windows[0].id
screenCapture.selectSource(sourceId);

// Start capturing
screenCapture.startCapture();

// Process media stream (with HLS muxing)
screenCapture.processMediaStream();

// Stop capturing
screenCapture.stopCapture();

API

listDisplaySources()

Returns an array of available display sources.

Returns: Array<{id: string, name: string}>

listWindowSources()

Returns an array of available window sources.

Returns: Array<{id: string, name: string}>

selectSource(sourceId)

Selects a source (display or window) for capture.

Parameters:

  • sourceId (string): The ID of the source to capture

Returns: boolean

startCapture()

Starts the screen capture.

Returns: boolean

processMediaStream()

Processes the captured media stream with HLS muxing.

Returns: boolean

stopCapture()

Stops the screen capture.

Returns: boolean

Requirements

  • Node.js >= 14.0.0
  • macOS (darwin)

License

MIT

Keywords

screen-capture

FAQs

Package last updated on 08 Oct 2025

Did you know?

Socket

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.

Install

Related posts