Homebrew Services
Promised based wrapper to control brew services on macOS from Node.js
Requirements
- OSX with Brew installed
- Node.js 7.6+
Install
npm install --save homebrew-services
Usage
List all services
Returns a Map of all services and their status of either started or stopped.
const brew = ; async { const services = await brew; console; // Map { // 'cassandra' => 'stopped', // 'redis' => 'started' }};
Start a service
const status = await brewstart service: 'redis' ;console; // started
Stop a service
const status = await brew;console; // stopped