@iag-garybrown/lock-your-windows
v1.0.2
Published
Activate the Windows lock screen (Win+L), or check if Windows is currently locked.
Downloads
2
Readme
lock-your-windows
Activate the Windows lock screen (Win+L), or check if Windows is currently locked.
Requirements
- Node.js and NPM
- node-gyp
- Visual Studio (tested on 2015 Community Edition)
- Windows 8.1 SDK
Installation
npm install --save lock-your-windows
Usage
var lockYourWindows = require('lock-your-windows');
var isLocked = lockYourWindows.isLocked();
console.log("Windows is currently "+(isLocked ? "locked" : "unlocked"));
console.log("Locking Windows...");
lockYourWindows.lock();
Developing
Recompile the native C++ addon
node-gyp rebuild
Run tests
npm test