Add power-monitor module, fixes #45.

This commit is contained in:
Cheng Zhao 2013-08-03 15:58:59 +08:00
parent 79870494df
commit 55034be104
6 changed files with 123 additions and 0 deletions

View file

@ -0,0 +1,7 @@
bindings = process.atomBinding 'power_monitor'
EventEmitter = require('events').EventEmitter
PowerMonitor = bindings.PowerMonitor
PowerMonitor::__proto__ = EventEmitter.prototype
module.exports = new PowerMonitor