0.0.2 • Published 1 year ago

lock-your-windows v0.0.2

Weekly downloads
5
License
Apache-2.0
Repository
github
Last release
1 year ago

lock-your-windows

Activate the Windows lock screen (Win+L), or check if Windows is currently locked.

Requirements

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