toggle-hotplug
Toggle macOS Sierra hotplug on and off
Install
$ yarn add toggle-hotplug
Usage
const isOn toggle = await // => false await // => true
API
toggleHotplug
All methods return a promise
isOn()
Returns a Promise of whether the hotplug is on.
toggle()
Inverse the hotplug state.
Related
- toggle-hotplug-cli — CLI for this module
License
MIT © Bu Kinoshita