Follow simple steps to install buildifier on Mac

Package Information:

Name: buildifier
Use: Format bazel BUILD files with a standard convention
URL: https://github.com/bazelbuild/buildifier

Installation Steps:

  1. Open Terminal by hitting <command+space>. Type terminal and hit Enter key.
  2. Copy and run the command

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  3. Install buildifier using brew
    brew install buildifier

buildifier is ready to use now!