Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

display-control

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

display-control - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

src/.DS_Store

4

package.json
{
"name": "display-control",
"version": "0.1.0",
"version": "0.1.1",
"description": "Sleep and wake the display",

@@ -17,2 +17,2 @@ "main": "src/index.js",

}
}
}

@@ -5,7 +5,9 @@ 'use strict';

const linux = {};
const DISPLAY = process.env.DISPLAY || ':0';
linux.sleep = () => {
exec('export DISPLAY=:0; xset dpms force suspend');
exec(`export DISPLAY=${DISPLAY}; xset dpms force suspend`);
};
linux.wake = () => {
exec('export DISPLAY=:0; xset dpms force on');
exec(`export DISPLAY=${DISPLAY}; xset dpms force on`);
};

@@ -15,2 +17,2 @@ linux.supported = () => {

};
module.exports = linux;
module.exports = linux;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc