osx-bluetooth
Get or set Bluetooth state on OS X systems
Install
$ npm install --save osx-bluetooth
Usage
const osxBluetooth = ; osxBluetooth; osxBluetooth; osxBluetooth; osxBluetooth;
API
.isOn()
Check if bluetooth is on or off. Returns a promise for a boolean
.
.on()
Turn bluetooth on. Returns a promise.
.off()
Turn bluetooth off. Returns a promise.
.toggle([force])
Toggle the bluetooth state. Returns a promise.
force
Type: boolean
Force a state when toggling.
CLI
See the bluetooth CLI.
License
MIT © Andreas Gillström