
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
An Electron module for displaying objects in physically accurate sizes on screens.
Downloadable versions of the Demos are available for Macs.
I hope this module and its uses will convince browser makers to provide this as a native API or at least to Electron in its core
npm install --save lifesized
var lifesized = require('lifesized');
// Get the pixels per inch of the display the current render process' BrowserWindow
// is mostly overlayed on
var pixelsPerInch = lifesized.ppi();
See the Demos and their source for a working example.
Get the Pixels Per Inch of a display.
Returns: (Number) The displays Pixels Per Inch.
Calculate how much you have to scale an object in an image to make it appear life sized on the screen.
Returns: (Number) Scale factor to use to scale images (1.0 === 100%)
* Some OSs display windows on multiple displays at once when a Window spans
more than one display, some do not. We use the best guest using Electron's screen.getDisplayMatching(rect)
To run the coins app that shows this off do the following:
Get the code and npm install things
git clone git@github.com:francoislaberge/lifesized.git
cd lifesized
npm Install
Launch the coins demo
npm run coins
Get some coins and verify that they are the same size in real life as they are on screen.
npm run shaqs-hands
or npm run ruler
git clone git@github.com:francoislaberge/lifesized.git
cd lifesized
yarn install
See the Todos for planned work if you want to chip in.
FAQs
Display things in life size
We found that lifesized 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.