Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@idrive-remotepc/display-utility
Advanced tools
Readme
Linux utility to
npm install @idrive-remotepc/display-utility
import { displayUtility, lockUtility, screenCaptureUtility } from '@idrive-remotepc/display-utility';
const { displayUtility, lockUtility, screenCaptureUtility } = require('@idrive-remotepc/display-utility');
Returns list of numbers which represents the RROutput corresponding to all the outputs.
Returns the name of the output (monitor) given the RROutput number for that output
Returns the current resolution of the output (monitor) given the RROutput number for that output
Returns the list of possible resolutions for an output (montior) given the RROutput number for that output
Sets a particular resolution for an output (monitor) given the RROutput number for that output and the new resolution to be set.
Reduces the brightness of all connected outputs to 0 and makes the screen blank.
Reverses the operation performed by makeScreenBlank()
Get the RROutput number corresponding to the primary monitor
Note: When no monitor is marked as primary, one of the connected monitor's RROutput number is returned
Get the complete resolution of the display when multiple monitors are connected.
Note: Returns same value as getCurrentResolution(), when single monitor is connected
Get the position (x-offset and y-offset), height and width of connected monitors
Initialises the screen capturer and x264 encoder for capturing screen.
To capture a single output (monitor) with RROutput number 65 (example):
screenCaptureUtility.init(true, 65);
To capture the complete display including all connected outputs (monitors):
screenCaptureUtility.init();
Returns the captured and encoded frame buffer as a callback.
screenCaptureUtility.getNextFrame((frame: ArrayBuffer) => {
// perform operation with frame
});
Locks the computer when executed
Please feel free to raise issues on this repository, be it bugs or feature requests. We would be happy to address them.
Debugging the native node modules is possible using lldb extension in Visual Studio Code. Following are the steps:
Install recommended vscode extension vadimcn.vscode-lldb.
Install lldb in your system if it is not already installed.
# For debian
apt install lldb
# For RPM
yum install lldb
Write required functions to debug in test.ts and start debugging using F5.
FAQs
Linux utility to retrieve various information about desktop display, capture screen and convert them into video frames using xrandr and x264 encoding
The npm package @idrive-remotepc/display-utility receives a total of 1 weekly downloads. As such, @idrive-remotepc/display-utility popularity was classified as not popular.
We found that @idrive-remotepc/display-utility demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.