toggle-hotplug

0.0.1 • Public • Published

toggle-hotplug Build Status

Toggle macOS Sierra hotplug on and off

Install

$ yarn add toggle-hotplug

Usage

const { isOn, toggle } = require('toggle-hotplug')
 
await isOn()
// => false
 
await toggle()
// => true

API

toggleHotplug

All methods return a promise

isOn()

Returns a Promise of whether the hotplug is on.

toggle()

Inverse the hotplug state.

Related

License

MIT © Bu Kinoshita

Package Sidebar

Install

npm i toggle-hotplug

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • bukinoshita