Miss any of our Open RFC calls?Watch the recordings here! »

homebrew-services

0.1.0 • Public • Published

Homebrew Services

Build Status Coverage Status

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 = require('homebrew-services');
 
(async () => {
  const { services } = await brew.list();
 
  console.log(services);
  // Map {
  // 'cassandra' => 'stopped',
  // 'redis' => 'started' }
})();

Start a service

const { status } = await brew.start({ service: 'redis' });
console.log(status); // started

Stop a service

const { status } = await brew.stop({ service: 'redis' });
console.log(status); // stopped

Install

npm i homebrew-services

DownloadsWeekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

12 kB

Total Files

33

Last publish

Collaborators

  • avatar