1.0.2 • Published 10 years ago
@mh-cbon/has-launchd v1.0.2
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
1.0.2
10 years ago