electron/atom/browser/api/lib/power-monitor.coffee
2015-11-12 20:29:30 +08:00

7 lines
168 B
CoffeeScript

{EventEmitter} = require 'events'
{powerMonitor} = process.atomBinding 'power_monitor'
powerMonitor.__proto__ = EventEmitter.prototype
module.exports = powerMonitor