Activate the Windows lock screen (Win+L), or check if Windows is currently locked.
- Node.js and NPM
- node-gyp
- Visual Studio (tested on 2015 Community Edition)
- Windows 8.1 SDK
npm install --save lock-your-windows
var lockYourWindows = require('lock-your-windows');
var isLocked = lockYourWindows.isLocked();
console.log("Windows is currently "+(isLocked ? "locked" : "unlocked"));
console.log("Locking Windows...");
lockYourWindows.lock();
node-gyp rebuild
npm test