title: Battery status API in macOS?
body: <p>How can I read the status of the battery on my MacBookPro from my own application?</p>
  
  <p>Googling has so far only revealed APIs for device drivers to handle power events - there's nothing about user-land processes accessing this information.</p>
  
  <p>thanks.</p>