https://github.com/aldaviva/lock-your-macs
Check if Mac OS is currently locked.
https://github.com/aldaviva/lock-your-macs
lock lockscreen mac macos
Last synced: about 1 month ago
JSON representation
Check if Mac OS is currently locked.
- Host: GitHub
- URL: https://github.com/aldaviva/lock-your-macs
- Owner: Aldaviva
- License: apache-2.0
- Created: 2017-08-03T07:00:48.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-03T07:01:27.000Z (almost 9 years ago)
- Last Synced: 2025-10-12T07:23:53.790Z (8 months ago)
- Topics: lock, lockscreen, mac, macos
- Language: C++
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: License.txt
Awesome Lists containing this project
README
lock-your-macs
============
Check if Mac OS is currently locked.
## Requirements
- [Node.js and NPM](https://nodejs.org/en/)
- [node-gyp](https://www.npmjs.com/package/node-gyp)
- Xcode Command-Line Tools
## Installation
```bash
npm install --save lock-your-macs
```
## Usage
```javascript
var lockYourMacs = require('lock-your-macs');
var isLocked = lockYourMacs.isLocked();
console.log("Mac OS is currently "+(isLocked ? "locked" : "unlocked"));
```
## Developing
### Recompile the native C++ addon
```bash
node-gyp rebuild
```
### Run tests
```bash
npm test
```