Very useful project, thanks a lot for publishing this. Testing out on macos, installer('foo') fails with an error message from brew install that says: ... Error: invalid option: -y. The docs confirm this option is not a supported flag for the command: https://docs.brew.sh/Manpage#install-options-formulacask-.
The flag is added here:
https://github.com/techno-express/node-sys/blob/97c95592099e31796c56e8c5a42086abf0874a13/index.js#L122
I patched the line above to remove the -y and then everything worked as expected on my system. I might have time to push a fix later, but figured I'd log an issue first.