Package Exports
- @iag-garybrown/lock-your-windows
- @iag-garybrown/lock-your-windows/src/main/js/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@iag-garybrown/lock-your-windows) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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