I needed this for some stuff -- here's the resources I used
https://objectpartners.com/2017/04/13/how-to-install-and-use-headless-chrome-on-osx/
https://medium.com/@dschnr/using-headless-chrome-as-an-automated-screenshot-tool-4b07dffba79a
- Latest Node.js (v7.10.x is what I used)
- Latest Google Chrome Canary build
brew install Caskroom/versions/google-chrome-canary
Start Chrome headless in background
/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --headless --remote-debugging-port=9222 --disable-gpu &
npm install
node index.js --url="http://google.com"