SensorAFK
Sensor away from keyboard (element)
Sensor AFK was created for Laravel package: rangoo/lockscreen
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Installing
This package can be installed with:
- npm:
npm install --save sensor-afk
Examples
const SensorAFK = ; let wasAfk = false; let sensor = time: 30 sensors: 'click wheel mousemove keydown keyup keypress' node: document { ifwasAfk ; else ; wasAfk = true; }; // trigger events manuallysensor;sensor; // doesn't shut downs sensor. Just waiting next flushsensorstart;sensor; // callback is triggered here sensor; // turns off sensorsensor; // turns on sensorsensor; // toggle on/off sensor
Default Options:
time: 30 sensors: 'click wheel mousemove keydown keyup keypress' node: document { // default callback does nothing }
Deployment
Add additional notes about how to deploy this on a live system
Built With
- Laravel Mix - Laravel Mix for compiling files
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Guja Babunashvili - Initial work - Guja1501
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE file for details