apple-system-listener

1.2.1 • Public • Published

apple system listener

Event emitter that, through a pair of subprocesses, reports sleep, wake, shutdown, boot, user active, and user idle.

The constructor takes an integer which is how many lines to go back when running syslog -w [lines-back] under the hood.

example

var AppleSysListener = require('apple-system-listener');

AppleSysListener(9000).on('event', function(event) {
  console.log(event);
});

Readme

Keywords

none

Package Sidebar

Install

npm i apple-system-listener

Weekly Downloads

2

Version

1.2.1

License

ISC

Last publish

Collaborators

  • keyvanfatehi