0.0.1 • Published 5 years ago

is-macos v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

is-macos

npm version

Small tool that gives exit code 0 if it's running on macOS

is-macos && echo "It's macOS"

Want to run a command only if it's macOS?

commandA && (is-macos && commandB || true) && commandC

On macOS commandA, commandB, and commandC will run. On other operating systems only commandA and commandC will run.