6 lines
203 B
JavaScript
6 lines
203 B
JavaScript
const EventEmitter = require('events').EventEmitter
|
|
const powerMonitor = process.atomBinding('power_monitor').powerMonitor
|
|
|
|
powerMonitor.__proto__ = EventEmitter.prototype
|
|
|
|
module.exports = powerMonitor
|