@mh-cbon/has-launchd

1.0.2 • Public • Published

has-launchd

Tells if macos launchd is available.

Usage

require('@mh-cbon/has-launchd')(function (err, launchdPath) {
  console.log("This system runs launchd : %s", err?"no":"yes");
  launchdPath && console.log("Found launchd at path : %s", launchdPath)
})

Testing

mac

To run the mac tests on a fedora-like box,

  • download and install vagrant
  • execute npm run test-mac
  • wait, a looooooonnnnggggg time. Mac images are very big....

linux

To run the linux tests on a fedora-like box,

  • download and install vagrant
  • execute npm run test-not-mac

or just

  • download and install mocha
  • mocha test/not-mac.js

TODOS

  • add tests for macos/lion
  • add tests for macos/maverick
  • add tests for macos/yosemite
  • add tests for macos/elcapitan

Readme

Keywords

Package Sidebar

Install

npm i @mh-cbon/has-launchd

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • mh-cbon